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

/***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Clonar/recetas.vue?vue&type=script&lang=js&":
/*!******************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Clonar/recetas.vue?vue&type=script&lang=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 _Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! regenerator-runtime/runtime.js */ \"./node_modules/regenerator-runtime/runtime.js\");\n/* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/core-js/modules/es.array.map.js\");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ \"./node_modules/core-js/modules/es.array.filter.js\");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! bootstrap-vue */ \"./node_modules/bootstrap-vue/esm/index.js\");\n/* harmony import */ var _core_components_app_collapse_AppCollapse_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @core/components/app-collapse/AppCollapse.vue */ \"./src/@core/components/app-collapse/AppCollapse.vue\");\n/* harmony import */ var _core_components_app_collapse_AppCollapseItem_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @core/components/app-collapse/AppCollapseItem.vue */ \"./src/@core/components/app-collapse/AppCollapseItem.vue\");\n/* harmony import */ var vue_ripple_directive__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vue-ripple-directive */ \"./node_modules/vue-ripple-directive/src/ripple.js\");\n/* harmony import */ var _composables_useRoles__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/composables/useRoles */ \"./src/composables/useRoles.js\");\n/* harmony import */ var _vue_composition_api__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @vue/composition-api */ \"./node_modules/@vue/composition-api/dist/vue-composition-api.mjs\");\n/* harmony import */ var _components_PlanCard_vue__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../components/PlanCard.vue */ \"./src/views/components/PlanCard.vue\");\n/* harmony import */ var _Patients_FollowUp_InformationNutritional_Intervention_Planes_Tradicional_vue__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../Patients/FollowUp/InformationNutritional/Intervention/Planes/Tradicional.vue */ \"./src/views/Patients/FollowUp/InformationNutritional/Intervention/Planes/Tradicional.vue\");\n/* harmony import */ var _store_index__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/store/index */ \"./src/store/index.js\");\n/* harmony import */ var _core_comp_functions_forms_form_utils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @core/comp-functions/forms/form-utils */ \"./src/@core/comp-functions/forms/form-utils.js\");\n/* harmony import */ var _services_AlimentosDietaService__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @/services/AlimentosDietaService */ \"./src/services/AlimentosDietaService.js\");\n/* harmony import */ var vee_validate_dist_vee_validate_full__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! vee-validate/dist/vee-validate.full */ \"./node_modules/vee-validate/dist/vee-validate.full.js\");\n/* harmony import */ var vee_validate_dist_vee_validate_full__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(vee_validate_dist_vee_validate_full__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var _useAlimentosDieta__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./useAlimentosDieta */ \"./src/views/Clonar/useAlimentosDieta.js\");\n/* harmony import */ var _core_comp_functions_forms_form_validation__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @core/comp-functions/forms/form-validation */ \"./src/@core/comp-functions/forms/form-validation.js\");\n/* harmony import */ var vue_select__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! vue-select */ \"./node_modules/vue-select/dist/vue-select.js\");\n/* harmony import */ var vue_select__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(vue_select__WEBPACK_IMPORTED_MODULE_19__);\n\n\n\nvar _components;\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  components: (_components = {\n    vSelect: vue_select__WEBPACK_IMPORTED_MODULE_19___default.a,\n    BFormCheckboxGroup: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BFormCheckboxGroup\"],\n    BFormFile: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BFormFile\"],\n    BFormInvalidFeedback: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BFormInvalidFeedback\"],\n    BForm: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BForm\"],\n    ValidationObserver: vee_validate_dist_vee_validate_full__WEBPACK_IMPORTED_MODULE_16__[\"ValidationObserver\"],\n    ValidationProvider: vee_validate_dist_vee_validate_full__WEBPACK_IMPORTED_MODULE_16__[\"ValidationProvider\"],\n    BMedia: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BMedia\"],\n    BOverlay: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BOverlay\"],\n    BPagination: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BPagination\"],\n    BAlert: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BAlert\"],\n    BModal: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BModal\"],\n    BFormCheckbox: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BFormCheckbox\"],\n    BButton: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BButton\"],\n    BCardText: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BCardText\"],\n    BListGroup: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BListGroup\"],\n    BListGroupItem: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BListGroupItem\"],\n    BRow: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BRow\"],\n    BCol: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BCol\"],\n    BCard: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BCard\"],\n    BBadge: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BBadge\"],\n    BImg: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BImg\"],\n    AppCollapseItem: _core_components_app_collapse_AppCollapseItem_vue__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n    AppCollapse: _core_components_app_collapse_AppCollapse_vue__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n    BTable: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BTable\"],\n    PlanCard: _components_PlanCard_vue__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n    BFormGroup: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BFormGroup\"],\n    BFormSelect: bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BFormSelect\"]\n  }, Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_components, \"BPagination\", bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BPagination\"]), Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_components, \"BInputGroup\", bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BInputGroup\"]), Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_components, \"BFormInput\", bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BFormInput\"]), Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_components, \"BInputGroupAppend\", bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BInputGroupAppend\"]), Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_components, \"BAvatar\", bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"BAvatar\"]), _components),\n  directives: {\n    'b-modal': bootstrap_vue__WEBPACK_IMPORTED_MODULE_5__[\"VBModal\"],\n    Ripple: vue_ripple_directive__WEBPACK_IMPORTED_MODULE_8__[\"default\"]\n  },\n  data: function data() {\n    return {\n      elem: null,\n      idPalabra: null,\n      show: false,\n      //palabraB: null,\n      form: {\n        buscar: \" \"\n      },\n      //cantidad: 10,\n      pagina: 1,\n      elementos: [],\n      //currentPage: 1,\n      //perPage: 1,\n      rows: 400,\n      //paginador: 1,\n      pageOptions: [3, 5, 10],\n      //totalRows: 1,\n      sortBy: '',\n      sortDesc: false,\n      sortDirection: 'asc',\n      filter: null,\n      filterOn: [],\n      nombre: null,\n      descripcion: null,\n      foto: null,\n      fotoC: null,\n      //allAlimentos:   null,\n      alimentoEdiatr: null\n    };\n  },\n  computed: {\n    sortOptions: function sortOptions() {\n      // Create an options list from our fields\n      return this.fields.filter(function (f) {\n        return f.sortable;\n      }).map(function (f) {\n        return {\n          text: f.label,\n          value: f.key\n        };\n      });\n    }\n  },\n  mounted: function mounted() {//this.getAlimentosSME()\n  },\n  methods: {\n    confirmarEditar: function confirmarEditar() {},\n    cambiarPagina: function cambiarPagina() {},\n    modal: function modal(i) {},\n    getAlimentosSME: function getAlimentosSME() {\n      var _this = this;\n\n      _services_AlimentosDietaService__WEBPACK_IMPORTED_MODULE_15__[\"default\"].todosAlimentos(this.form, this.cantidad, this.pagina).then(function (response) {\n        _this.allAlimentos = response.data.cuerpo.data;\n        _this.paginador = response.data.cuerpo.total;\n      }).catch(function (error) {});\n    },\n    info: function info(item, index, button) {\n      this.infoModal.title = \"Row index: \".concat(index);\n      this.infoModal.content = JSON.stringify(item, null, 2);\n      this.$root.$emit('bv::show::modal', this.infoModal.id, button);\n    },\n    resetInfoModal: function resetInfoModal() {\n      this.infoModal.title = '';\n      this.infoModal.content = '';\n    }\n    /*\r\n    onFiltered(filteredItems) {\r\n      // Trigger pagination to update the number of buttons/pages due to filtering\r\n      this.totalRows = filteredItems.length\r\n      this.currentPage = 1\r\n    },*/\n\n  },\n\n  /*\r\n  computed: {\r\n    getTotalPages () {\r\n      let res = Math.ceil(this.paginador / this.cantidad) * 20\r\n      return res\r\n    },\r\n    page () {\r\n      return this.listQuery.page\r\n    }\r\n  },\r\n    watch: {\r\n    currentPage(){\r\n      \r\n      this.pagina = this.currentPage\r\n      this.getAlimentosSME()\r\n    }\r\n  },*/\n  setup: function setup() {\n    var _useAlimentosDieta = Object(_useAlimentosDieta__WEBPACK_IMPORTED_MODULE_17__[\"default\"])(),\n        currentPage = _useAlimentosDieta.currentPage,\n        getTotalPages = _useAlimentosDieta.getTotalPages,\n        saveAlimento = _useAlimentosDieta.saveAlimento,\n        getGrupoAlimentos = _useAlimentosDieta.getGrupoAlimentos,\n        updateAlimento = _useAlimentosDieta.updateAlimento,\n        deleteAlimentoS = _useAlimentosDieta.deleteAlimentoS,\n        getAlimentosSME = _useAlimentosDieta.getAlimentosSME,\n        listQuery = _useAlimentosDieta.listQuery,\n        pagina = _useAlimentosDieta.pagina,\n        cantidad = _useAlimentosDieta.cantidad,\n        allAlimentos = _useAlimentosDieta.allAlimentos,\n        paginador = _useAlimentosDieta.paginador,\n        getRcetas = _useAlimentosDieta.getRcetas,\n        quitarReceta = _useAlimentosDieta.quitarReceta;\n\n    var intervencion = _store_index__WEBPACK_IMPORTED_MODULE_13__[\"default\"].state.intervencion;\n    var show = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_10__[\"ref\"])(false);\n    var mostrarE = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_10__[\"ref\"])(false);\n    var mostrar = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_10__[\"ref\"])(false);\n    var idPal = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_10__[\"ref\"])('');\n    var idAlimento = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_10__[\"ref\"])(false);\n    var alimentoEdiatr = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_10__[\"ref\"])(false);\n    var data2 = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_10__[\"reactive\"])({\n      grupoSelected: \"\"\n    });\n    var palabraB = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_10__[\"reactive\"])({\n      value: \"\"\n    });\n    var data = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_10__[\"reactive\"])({\n      grupoSelected: \"\",\n      cat_alimentos_smae_id: '',\n      alimento: \"\",\n      unidad: \"\",\n      cantidad_sugerida: \"\",\n      energia: \"\",\n      proteina: \"\",\n      lipidos: \"\",\n      hidratos: \"\"\n    });\n    Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_10__[\"onMounted\"])( /*#__PURE__*/Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n      return regeneratorRuntime.wrap(function _callee$(_context) {\n        while (1) {\n          switch (_context.prev = _context.next) {\n            case 0:\n              _context.next = 2;\n              return getGrupoAlimentos();\n\n            case 2:\n              _context.next = 4;\n              return getRcetas(listQuery, cantidad.value, pagina.value);\n\n            case 4:\n            case \"end\":\n              return _context.stop();\n          }\n        }\n      }, _callee);\n    })));\n\n    var onSubmit = /*#__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() {\n        return regeneratorRuntime.wrap(function _callee2$(_context2) {\n          while (1) {\n            switch (_context2.prev = _context2.next) {\n              case 0:\n                _context2.next = 2;\n                return updateAlimento(idAlimento.value, data);\n\n              case 2:\n              case \"end\":\n                return _context2.stop();\n            }\n          }\n        }, _callee2);\n      }));\n\n      return function onSubmit() {\n        return _ref2.apply(this, arguments);\n      };\n    }();\n\n    var resetdata = function resetdata() {};\n\n    var _formValidation = Object(_core_comp_functions_forms_form_validation__WEBPACK_IMPORTED_MODULE_18__[\"default\"])(resetdata),\n        refFormObserver = _formValidation.refFormObserver,\n        getValidationState = _formValidation.getValidationState,\n        resetForm = _formValidation.resetForm;\n\n    var handleChangeGrupo = function handleChangeGrupo(opt) {\n      data.cat_alimentos_smae_id = data2.grupoSelected.id;\n    };\n\n    var editar = /*#__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(x) {\n        return regeneratorRuntime.wrap(function _callee3$(_context3) {\n          while (1) {\n            switch (_context3.prev = _context3.next) {\n              case 0:\n                mostrarE.value = true;\n                alimentoEdiatr.value = x;\n                idAlimento.value = x.id;\n                data.grupoSelected = \"\";\n                data.cat_alimentos_smae_id = x.cat_alimentos_smae_id;\n                data2.grupoSelected = intervencion.grupoAlimentos[x.cat_alimentos_smae_id - 1];\n                data.alimento = x.alimento;\n                data.unidad = x.unidad;\n                data.cantidad_sugerida = x.cantidad_sugerida;\n                data.energia = x.energia;\n                data.proteina = x.proteina;\n                data.lipidos = x.lipidos;\n                data.hidratos = x.hidratos_carbono;\n\n              case 13:\n              case \"end\":\n                return _context3.stop();\n            }\n          }\n        }, _callee3);\n      }));\n\n      return function editar(_x) {\n        return _ref3.apply(this, arguments);\n      };\n    }();\n\n    var eliminar = /*#__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(x) {\n        return regeneratorRuntime.wrap(function _callee4$(_context4) {\n          while (1) {\n            switch (_context4.prev = _context4.next) {\n              case 0:\n                mostrar.value = true;\n                idAlimento.value = x;\n\n              case 2:\n              case \"end\":\n                return _context4.stop();\n            }\n          }\n        }, _callee4);\n      }));\n\n      return function eliminar(_x2) {\n        return _ref4.apply(this, arguments);\n      };\n    }();\n\n    var confirmarE = /*#__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(x) {\n        return regeneratorRuntime.wrap(function _callee5$(_context5) {\n          while (1) {\n            switch (_context5.prev = _context5.next) {\n              case 0:\n                quitarReceta(idAlimento.value, 0);\n\n              case 1:\n              case \"end\":\n                return _context5.stop();\n            }\n          }\n        }, _callee5);\n      }));\n\n      return function confirmarE(_x3) {\n        return _ref5.apply(this, arguments);\n      };\n    }();\n\n    var buscarP = /*#__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(x) {\n        return regeneratorRuntime.wrap(function _callee6$(_context6) {\n          while (1) {\n            switch (_context6.prev = _context6.next) {\n              case 0:\n                listQuery.buscar = palabraB.value; //getAlimentosSME(listQuery.query, cantidad.value, pagina.value)\n\n              case 1:\n              case \"end\":\n                return _context6.stop();\n            }\n          }\n        }, _callee6);\n      }));\n\n      return function buscarP(_x4) {\n        return _ref6.apply(this, arguments);\n      };\n    }();\n\n    return {\n      currentPage: currentPage,\n      palabraB: palabraB,\n      buscarP: buscarP,\n      getTotalPages: getTotalPages,\n      paginador: paginador,\n      allAlimentos: allAlimentos,\n      confirmarE: confirmarE,\n      mostrar: mostrar,\n      eliminar: eliminar,\n      alimentoEdiatr: alimentoEdiatr,\n      mostrarE: mostrarE,\n      editar: editar,\n      data2: data2,\n      handleChangeGrupo: handleChangeGrupo,\n      getValidationState: getValidationState,\n      onSubmit: onSubmit,\n      data: data,\n      intervencion: intervencion,\n      show: show\n    };\n  }\n});\n/* eslint-disable global-require */\n\n//# sourceURL=webpack:///./src/views/Clonar/recetas.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"5c469c4f-vue-loader-template\"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Clonar/recetas.vue?vue&type=template&id=3e0fc715&":
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5c469c4f-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Clonar/recetas.vue?vue&type=template&id=3e0fc715& ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n  return _c(\n    \"b-overlay\",\n    { attrs: { show: _vm.show, rounded: \"sm\" } },\n    [\n      _c(\n        \"b-card\",\n        { staticClass: \"popular fixed-alt card-body d-flex flex-column\" },\n        [\n          _c(\n            \"b-row\",\n            { attrs: { \"align-h\": \"end\" } },\n            [\n              _c(\n                \"b-col\",\n                { attrs: { cols: \"4\" } },\n                [\n                  _c(\n                    \"b-form-group\",\n                    { attrs: { label: \"Buscar\", \"label-for\": \"basicInput\" } },\n                    [\n                      _c(\"b-form-input\", {\n                        attrs: { id: \"basicInput\", placeholder: \"Buscar\" },\n                        on: { input: _vm.buscarP },\n                        model: {\n                          value: _vm.palabraB.value,\n                          callback: function($$v) {\n                            _vm.$set(_vm.palabraB, \"value\", $$v)\n                          },\n                          expression: \"palabraB.value\"\n                        }\n                      })\n                    ],\n                    1\n                  )\n                ],\n                1\n              )\n            ],\n            1\n          ),\n          _c(\n            \"b-row\",\n            [\n              _c(\n                \"b-col\",\n                _vm._l(_vm.allAlimentos, function(column, i) {\n                  return _c(\n                    \"div\",\n                    { key: i, staticClass: \"palabras\" },\n                    [\n                      _c(\"feather-icon\", {\n                        staticClass: \"cursor-pointer mr-0 mr-sm-50 editar\",\n                        attrs: { icon: \"TrashIcon\", size: \"16\" },\n                        on: {\n                          click: function($event) {\n                            return _vm.eliminar(column.id)\n                          }\n                        }\n                      }),\n                      _c(\"b\", [_vm._v(_vm._s(column.nombre))])\n                    ],\n                    1\n                  )\n                }),\n                0\n              )\n            ],\n            1\n          ),\n          _c(\n            \"b-row\",\n            { attrs: { \"align-h\": \"end\" } },\n            [\n              _c(\n                \"b-col\",\n                { attrs: { cols: \"4\" } },\n                [\n                  _c(\"b-pagination\", {\n                    attrs: { \"total-rows\": _vm.getTotalPages.value },\n                    model: {\n                      value: _vm.currentPage.value,\n                      callback: function($$v) {\n                        _vm.$set(_vm.currentPage, \"value\", $$v)\n                      },\n                      expression: \"currentPage.value\"\n                    }\n                  })\n                ],\n                1\n              )\n            ],\n            1\n          ),\n          _c(\n            \"b-modal\",\n            {\n              ref: \"editar-modal\",\n              attrs: {\n                id: \"modal-editar\",\n                \"cancel-variant\": \"outline-secondary\",\n                \"ok-title\": \"Aceptar\",\n                \"cancel-title\": \"Cancelar\",\n                centered: \"\",\n                title: \"Editar receta\",\n                \"no-close-on-backdrop\": \"\"\n              },\n              on: { ok: _vm.confirmarEditar },\n              model: {\n                value: _vm.mostrarE,\n                callback: function($$v) {\n                  _vm.mostrarE = $$v\n                },\n                expression: \"mostrarE\"\n              }\n            },\n            [\n              _c(\"validation-observer\", {\n                ref: \"observer\",\n                scopedSlots: _vm._u([\n                  {\n                    key: \"default\",\n                    fn: function(ref) {\n                      var handleSubmit = ref.handleSubmit\n                      return [\n                        _c(\n                          \"b-form\",\n                          {\n                            on: {\n                              submit: function($event) {\n                                $event.stopPropagation()\n                                $event.preventDefault()\n                                return handleSubmit(_vm.onSubmit)\n                              }\n                            }\n                          },\n                          [\n                            _c(\"validation-provider\", {\n                              attrs: {\n                                name: \"GrupoAlimentos\",\n                                rules: { required: true }\n                              },\n                              scopedSlots: _vm._u(\n                                [\n                                  {\n                                    key: \"default\",\n                                    fn: function(validationContext) {\n                                      return [\n                                        _c(\n                                          \"b-form-group\",\n                                          {\n                                            attrs: {\n                                              label: \"Grupo de alimentos\",\n                                              \"label-for\": \"grupoAlimentos\"\n                                            }\n                                          },\n                                          [\n                                            _c(\"v-select\", {\n                                              attrs: {\n                                                dir: _vm.$store.state.appConfig\n                                                  .isRTL\n                                                  ? \"rtl\"\n                                                  : \"ltr\",\n                                                label: \"etiqueta\",\n                                                options:\n                                                  _vm.intervencion\n                                                    .grupoAlimentos,\n                                                state: _vm.getValidationState(\n                                                  validationContext\n                                                )\n                                              },\n                                              on: {\n                                                input: _vm.handleChangeGrupo\n                                              },\n                                              scopedSlots: _vm._u(\n                                                [\n                                                  {\n                                                    key: \"no-options\",\n                                                    fn: function() {\n                                                      return [\n                                                        _vm._v(\" Sin opciones \")\n                                                      ]\n                                                    },\n                                                    proxy: true\n                                                  }\n                                                ],\n                                                null,\n                                                true\n                                              ),\n                                              model: {\n                                                value: _vm.data2.grupoSelected,\n                                                callback: function($$v) {\n                                                  _vm.$set(\n                                                    _vm.data2,\n                                                    \"grupoSelected\",\n                                                    $$v\n                                                  )\n                                                },\n                                                expression:\n                                                  \"data2.grupoSelected\"\n                                              }\n                                            })\n                                          ],\n                                          1\n                                        ),\n                                        _c(\"b-form-invalid-feedback\", [\n                                          _vm._v(\n                                            \" \" +\n                                              _vm._s(\n                                                validationContext.errors[0]\n                                              ) +\n                                              \" \"\n                                          )\n                                        ])\n                                      ]\n                                    }\n                                  }\n                                ],\n                                null,\n                                true\n                              )\n                            }),\n                            _c(\"validation-provider\", {\n                              attrs: {\n                                name: \"Alimento\",\n                                rules: { required: true }\n                              },\n                              scopedSlots: _vm._u(\n                                [\n                                  {\n                                    key: \"default\",\n                                    fn: function(validationContext) {\n                                      return [\n                                        _c(\n                                          \"b-form-group\",\n                                          {\n                                            attrs: {\n                                              label: \"Alimento\",\n                                              \"label-for\": \"Alimento\"\n                                            }\n                                          },\n                                          [\n                                            _c(\"b-form-input\", {\n                                              attrs: {\n                                                id: \"alimento\",\n                                                placeholder: \"Alimento\",\n                                                state: _vm.getValidationState(\n                                                  validationContext\n                                                )\n                                              },\n                                              model: {\n                                                value: _vm.data.alimento,\n                                                callback: function($$v) {\n                                                  _vm.$set(\n                                                    _vm.data,\n                                                    \"alimento\",\n                                                    $$v\n                                                  )\n                                                },\n                                                expression: \"data.alimento\"\n                                              }\n                                            })\n                                          ],\n                                          1\n                                        ),\n                                        _c(\"b-form-invalid-feedback\", [\n                                          _vm._v(\n                                            \" \" +\n                                              _vm._s(\n                                                validationContext.errors[0]\n                                              ) +\n                                              \" \"\n                                          )\n                                        ])\n                                      ]\n                                    }\n                                  }\n                                ],\n                                null,\n                                true\n                              )\n                            }),\n                            _c(\"validation-provider\", {\n                              attrs: {\n                                name: \"Unidad\",\n                                rules: { required: true }\n                              },\n                              scopedSlots: _vm._u(\n                                [\n                                  {\n                                    key: \"default\",\n                                    fn: function(validationContext) {\n                                      return [\n                                        _c(\n                                          \"b-form-group\",\n                                          {\n                                            attrs: {\n                                              label: \"Unidad\",\n                                              \"label-for\": \"Unidad\"\n                                            }\n                                          },\n                                          [\n                                            _c(\"b-form-input\", {\n                                              attrs: {\n                                                id: \"unidad\",\n                                                state: _vm.getValidationState(\n                                                  validationContext\n                                                ),\n                                                placeholder: \"unidad\"\n                                              },\n                                              model: {\n                                                value: _vm.data.unidad,\n                                                callback: function($$v) {\n                                                  _vm.$set(\n                                                    _vm.data,\n                                                    \"unidad\",\n                                                    $$v\n                                                  )\n                                                },\n                                                expression: \"data.unidad\"\n                                              }\n                                            })\n                                          ],\n                                          1\n                                        ),\n                                        _c(\"b-form-invalid-feedback\", [\n                                          _vm._v(\n                                            \" \" +\n                                              _vm._s(\n                                                validationContext.errors[0]\n                                              ) +\n                                              \" \"\n                                          )\n                                        ])\n                                      ]\n                                    }\n                                  }\n                                ],\n                                null,\n                                true\n                              )\n                            }),\n                            _c(\"validation-provider\", {\n                              attrs: {\n                                name: \"Cantidad Sugerida\",\n                                rules: { required: true }\n                              },\n                              scopedSlots: _vm._u(\n                                [\n                                  {\n                                    key: \"default\",\n                                    fn: function(validationContext) {\n                                      return [\n                                        _c(\n                                          \"b-form-group\",\n                                          {\n                                            attrs: {\n                                              label: \"Cantidad sugerida\",\n                                              \"label-for\": \"Cantidad sugerida\"\n                                            }\n                                          },\n                                          [\n                                            _c(\"b-form-input\", {\n                                              attrs: {\n                                                id: \"cantidad_sugerida\",\n                                                state: _vm.getValidationState(\n                                                  validationContext\n                                                ),\n                                                placeholder: \"Cantidad sugerida\"\n                                              },\n                                              model: {\n                                                value:\n                                                  _vm.data.cantidad_sugerida,\n                                                callback: function($$v) {\n                                                  _vm.$set(\n                                                    _vm.data,\n                                                    \"cantidad_sugerida\",\n                                                    $$v\n                                                  )\n                                                },\n                                                expression:\n                                                  \"data.cantidad_sugerida\"\n                                              }\n                                            })\n                                          ],\n                                          1\n                                        ),\n                                        _c(\"b-form-invalid-feedback\", [\n                                          _vm._v(\n                                            \" \" +\n                                              _vm._s(\n                                                validationContext.errors[0]\n                                              ) +\n                                              \" \"\n                                          )\n                                        ])\n                                      ]\n                                    }\n                                  }\n                                ],\n                                null,\n                                true\n                              )\n                            }),\n                            _c(\"validation-provider\", {\n                              attrs: {\n                                name: \"Energia\",\n                                rules: { required: true }\n                              },\n                              scopedSlots: _vm._u(\n                                [\n                                  {\n                                    key: \"default\",\n                                    fn: function(validationContext) {\n                                      return [\n                                        _c(\n                                          \"b-form-group\",\n                                          {\n                                            attrs: {\n                                              label: \"Energía\",\n                                              \"label-for\": \"Energia\"\n                                            }\n                                          },\n                                          [\n                                            _c(\"b-form-input\", {\n                                              attrs: {\n                                                id: \"energia\",\n                                                state: _vm.getValidationState(\n                                                  validationContext\n                                                ),\n                                                placeholder: \"Energía\"\n                                              },\n                                              model: {\n                                                value: _vm.data.energia,\n                                                callback: function($$v) {\n                                                  _vm.$set(\n                                                    _vm.data,\n                                                    \"energia\",\n                                                    $$v\n                                                  )\n                                                },\n                                                expression: \"data.energia\"\n                                              }\n                                            })\n                                          ],\n                                          1\n                                        ),\n                                        _c(\"b-form-invalid-feedback\", [\n                                          _vm._v(\n                                            \" \" +\n                                              _vm._s(\n                                                validationContext.errors[0]\n                                              ) +\n                                              \" \"\n                                          )\n                                        ])\n                                      ]\n                                    }\n                                  }\n                                ],\n                                null,\n                                true\n                              )\n                            }),\n                            _c(\"validation-provider\", {\n                              attrs: {\n                                name: \"Proteina\",\n                                rules: { required: true }\n                              },\n                              scopedSlots: _vm._u(\n                                [\n                                  {\n                                    key: \"default\",\n                                    fn: function(validationContext) {\n                                      return [\n                                        _c(\n                                          \"b-form-group\",\n                                          {\n                                            attrs: {\n                                              label: \"Proteína\",\n                                              \"label-for\": \"Proteina\"\n                                            }\n                                          },\n                                          [\n                                            _c(\"b-form-input\", {\n                                              attrs: {\n                                                id: \"proteina\",\n                                                state: _vm.getValidationState(\n                                                  validationContext\n                                                ),\n                                                placeholder: \"proteina\"\n                                              },\n                                              model: {\n                                                value: _vm.data.proteina,\n                                                callback: function($$v) {\n                                                  _vm.$set(\n                                                    _vm.data,\n                                                    \"proteina\",\n                                                    $$v\n                                                  )\n                                                },\n                                                expression: \"data.proteina\"\n                                              }\n                                            })\n                                          ],\n                                          1\n                                        ),\n                                        _c(\"b-form-invalid-feedback\", [\n                                          _vm._v(\n                                            \" \" +\n                                              _vm._s(\n                                                validationContext.errors[0]\n                                              ) +\n                                              \" \"\n                                          )\n                                        ])\n                                      ]\n                                    }\n                                  }\n                                ],\n                                null,\n                                true\n                              )\n                            }),\n                            _c(\"validation-provider\", {\n                              attrs: {\n                                name: \"Lipidos\",\n                                rules: { required: true }\n                              },\n                              scopedSlots: _vm._u(\n                                [\n                                  {\n                                    key: \"default\",\n                                    fn: function(validationContext) {\n                                      return [\n                                        _c(\n                                          \"b-form-group\",\n                                          {\n                                            attrs: {\n                                              label: \"Lípidos\",\n                                              \"label-for\": \"Lipidos\"\n                                            }\n                                          },\n                                          [\n                                            _c(\"b-form-input\", {\n                                              attrs: {\n                                                id: \"lipidos\",\n                                                state: _vm.getValidationState(\n                                                  validationContext\n                                                ),\n                                                placeholder: \"Lípidos\"\n                                              },\n                                              model: {\n                                                value: _vm.data.lipidos,\n                                                callback: function($$v) {\n                                                  _vm.$set(\n                                                    _vm.data,\n                                                    \"lipidos\",\n                                                    $$v\n                                                  )\n                                                },\n                                                expression: \"data.lipidos\"\n                                              }\n                                            })\n                                          ],\n                                          1\n                                        ),\n                                        _c(\"b-form-invalid-feedback\", [\n                                          _vm._v(\n                                            \" \" +\n                                              _vm._s(\n                                                validationContext.errors[0]\n                                              ) +\n                                              \" \"\n                                          )\n                                        ])\n                                      ]\n                                    }\n                                  }\n                                ],\n                                null,\n                                true\n                              )\n                            }),\n                            _c(\"validation-provider\", {\n                              attrs: {\n                                name: \"Hidratos\",\n                                rules: { required: true }\n                              },\n                              scopedSlots: _vm._u(\n                                [\n                                  {\n                                    key: \"default\",\n                                    fn: function(validationContext) {\n                                      return [\n                                        _c(\n                                          \"b-form-group\",\n                                          {\n                                            attrs: {\n                                              label: \"Hidratos\",\n                                              \"label-for\": \"Hidratos\"\n                                            }\n                                          },\n                                          [\n                                            _c(\"b-form-input\", {\n                                              attrs: {\n                                                id: \"hidratos\",\n                                                state: _vm.getValidationState(\n                                                  validationContext\n                                                ),\n                                                placeholder: \"hidratos\"\n                                              },\n                                              model: {\n                                                value: _vm.data.hidratos,\n                                                callback: function($$v) {\n                                                  _vm.$set(\n                                                    _vm.data,\n                                                    \"hidratos\",\n                                                    $$v\n                                                  )\n                                                },\n                                                expression: \"data.hidratos\"\n                                              }\n                                            })\n                                          ],\n                                          1\n                                        ),\n                                        _c(\"b-form-invalid-feedback\", [\n                                          _vm._v(\n                                            \" \" +\n                                              _vm._s(\n                                                validationContext.errors[0]\n                                              ) +\n                                              \" \"\n                                          )\n                                        ])\n                                      ]\n                                    }\n                                  }\n                                ],\n                                null,\n                                true\n                              )\n                            }),\n                            _c(\n                              \"b-button\",\n                              { attrs: { type: \"submit\", variant: \"primary\" } },\n                              [_vm._v(\"Enviar\")]\n                            )\n                          ],\n                          1\n                        )\n                      ]\n                    }\n                  }\n                ])\n              })\n            ],\n            1\n          ),\n          _c(\n            \"b-modal\",\n            {\n              ref: \"confirmar-modal\",\n              attrs: {\n                id: \"modal-confirmar\",\n                \"cancel-variant\": \"outline-secondary\",\n                \"ok-title\": \"Aceptar\",\n                \"cancel-title\": \"Cancelar\",\n                centered: \"\",\n                title: \"Eliminar receta\",\n                \"no-close-on-backdrop\": \"\"\n              },\n              on: { ok: _vm.confirmarE },\n              model: {\n                value: _vm.mostrar,\n                callback: function($$v) {\n                  _vm.mostrar = $$v\n                },\n                expression: \"mostrar\"\n              }\n            },\n            [_vm._v(\" ¿Seguro que deseas eliminar? \")]\n          )\n        ],\n        1\n      )\n    ],\n    1\n  )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/Clonar/recetas.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%225c469c4f-vue-loader-template%22%7D!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),

/***/ "./node_modules/core-js/modules/es.array.map.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/modules/es.array.map.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"./node_modules/core-js/internals/export.js\");\nvar $map = __webpack_require__(/*! ../internals/array-iteration */ \"./node_modules/core-js/internals/array-iteration.js\").map;\nvar arrayMethodHasSpeciesSupport = __webpack_require__(/*! ../internals/array-method-has-species-support */ \"./node_modules/core-js/internals/array-method-has-species-support.js\");\nvar arrayMethodUsesToLength = __webpack_require__(/*! ../internals/array-method-uses-to-length */ \"./node_modules/core-js/internals/array-method-uses-to-length.js\");\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n// FF49- issue\nvar USES_TO_LENGTH = arrayMethodUsesToLength('map');\n\n// `Array.prototype.map` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n  map: function map(callbackfn /* , thisArg */) {\n    return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n  }\n});\n\n\n//# sourceURL=webpack:///./node_modules/core-js/modules/es.array.map.js?");

/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Clonar/recetas.vue?vue&type=style&index=0&lang=css&":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Clonar/recetas.vue?vue&type=style&index=0&lang=css& ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"\\n[dir=ltr] .editar {\\n  margin-left: 2%;\\n}\\n[dir=rtl] .editar {\\n  margin-right: 2%;\\n}\\n.palabras {\\n  font-size: 20px;\\n}\\n[dir] .palabras {\\n  padding: 5px;\\n}\\n.cursor {\\n  width: 400px;\\n}\\n[dir] .cursor {\\n  cursor:pointer;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./src/views/Clonar/recetas.vue?./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),

/***/ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Clonar/recetas.vue?vue&type=style&index=0&lang=css&":
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/vue-style-loader??ref--7-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Clonar/recetas.vue?vue&type=style&index=0&lang=css& ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib??vue-loader-options!./recetas.vue?vue&type=style&index=0&lang=css& */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Clonar/recetas.vue?vue&type=style&index=0&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = __webpack_require__(/*! ../../../node_modules/vue-style-loader/lib/addStylesClient.js */ \"./node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"ef0204de\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack:///./src/views/Clonar/recetas.vue?./node_modules/vue-style-loader??ref--7-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),

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

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useInputImageRenderer\", function() { return useInputImageRenderer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useInputImageLoader\", function() { return useInputImageLoader; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"_\", function() { return _; });\nvar useInputImageRenderer = function useInputImageRenderer(inputEl, callback) {\n  var inputImageRenderer = function inputImageRenderer() {\n    var file = inputEl.value.files[0];\n    var reader = new FileReader();\n    reader.addEventListener('load', function () {\n      callback(reader.result);\n    }, false);\n\n    if (file) {\n      reader.readAsDataURL(file);\n    }\n  };\n\n  return {\n    inputImageRenderer: inputImageRenderer\n  };\n};\nvar useInputImageLoader = function useInputImageLoader(inputEl, callback, callbackSave) {\n  var file = inputEl.files[0];\n  var reader = new FileReader();\n  reader.addEventListener('load', function () {\n    callback(reader.result);\n  }, false);\n\n  if (file) {\n    reader.readAsDataURL(file);\n    callbackSave(file);\n  }\n};\nvar _ = null;\n\n//# sourceURL=webpack:///./src/@core/comp-functions/forms/form-utils.js?");

/***/ }),

/***/ "./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/composables/useRoles.js":
/*!*************************************!*\
  !*** ./src/composables/useRoles.js ***!
  \*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\nvar useRoles = function useRoles() {\n  var admin = 'admins';\n  var nutriologos = 'nutriologos';\n  var pacientes = 'pacientes';\n  var sinsubs = 'Sin suscripción';\n  return {\n    admin: admin,\n    nutriologos: nutriologos,\n    pacientes: pacientes,\n    sinsubs: sinsubs\n  };\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (useRoles);\n\n//# sourceURL=webpack:///./src/composables/useRoles.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/Clonar/recetas.vue":
/*!**************************************!*\
  !*** ./src/views/Clonar/recetas.vue ***!
  \**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _recetas_vue_vue_type_template_id_3e0fc715___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./recetas.vue?vue&type=template&id=3e0fc715& */ \"./src/views/Clonar/recetas.vue?vue&type=template&id=3e0fc715&\");\n/* harmony import */ var _recetas_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./recetas.vue?vue&type=script&lang=js& */ \"./src/views/Clonar/recetas.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _recetas_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./recetas.vue?vue&type=style&index=0&lang=css& */ \"./src/views/Clonar/recetas.vue?vue&type=style&index=0&lang=css&\");\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\n  _recetas_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n  _recetas_vue_vue_type_template_id_3e0fc715___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n  _recetas_vue_vue_type_template_id_3e0fc715___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n  false,\n  null,\n  null,\n  null\n  \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"src/views/Clonar/recetas.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack:///./src/views/Clonar/recetas.vue?");

/***/ }),

/***/ "./src/views/Clonar/recetas.vue?vue&type=script&lang=js&":
/*!***************************************************************!*\
  !*** ./src/views/Clonar/recetas.vue?vue&type=script&lang=js& ***!
  \***************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_recetas_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib??vue-loader-options!./recetas.vue?vue&type=script&lang=js& */ \"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Clonar/recetas.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_cache_loader_dist_cjs_js_ref_13_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_recetas_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); \n\n//# sourceURL=webpack:///./src/views/Clonar/recetas.vue?");

/***/ }),

/***/ "./src/views/Clonar/recetas.vue?vue&type=style&index=0&lang=css&":
/*!***********************************************************************!*\
  !*** ./src/views/Clonar/recetas.vue?vue&type=style&index=0&lang=css& ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_recetas_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/vue-style-loader??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib??vue-loader-options!./recetas.vue?vue&type=style&index=0&lang=css& */ \"./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Clonar/recetas.vue?vue&type=style&index=0&lang=css&\");\n/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_recetas_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_recetas_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_recetas_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__) if([\"default\"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_recetas_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n\n\n//# sourceURL=webpack:///./src/views/Clonar/recetas.vue?");

/***/ }),

/***/ "./src/views/Clonar/recetas.vue?vue&type=template&id=3e0fc715&":
/*!*********************************************************************!*\
  !*** ./src/views/Clonar/recetas.vue?vue&type=template&id=3e0fc715& ***!
  \*********************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_5c469c4f_vue_loader_template_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_recetas_vue_vue_type_template_id_3e0fc715___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"5c469c4f-vue-loader-template\"}!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib??vue-loader-options!./recetas.vue?vue&type=template&id=3e0fc715& */ \"./node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"5c469c4f-vue-loader-template\\\"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Clonar/recetas.vue?vue&type=template&id=3e0fc715&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_5c469c4f_vue_loader_template_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_recetas_vue_vue_type_template_id_3e0fc715___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_5c469c4f_vue_loader_template_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_recetas_vue_vue_type_template_id_3e0fc715___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack:///./src/views/Clonar/recetas.vue?");

/***/ }),

/***/ "./src/views/Clonar/useAlimentosDieta.js":
/*!***********************************************!*\
  !*** ./src/views/Clonar/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    getRcetas(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    getRcetas(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) {\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);\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) {\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(_x5) {\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  var getRcetas = function getRcetas(listQuery, perPage, page) {\n    _services_AlimentosDietaService__WEBPACK_IMPORTED_MODULE_4__[\"default\"].recetas(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 recetas\",\n          icon: 'AlertTriangleIcon',\n          variant: 'danger'\n        }\n      });\n    });\n  };\n\n  var quitarReceta = /*#__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(id_dieta, estatus) {\n      var response;\n      return regeneratorRuntime.wrap(function _callee5$(_context5) {\n        while (1) {\n          switch (_context5.prev = _context5.next) {\n            case 0:\n              saving.value = true;\n              _context5.prev = 1;\n              _context5.next = 4;\n              return _services_AlimentosDietaService__WEBPACK_IMPORTED_MODULE_4__[\"default\"].activarReceta(id_dieta, estatus);\n\n            case 4:\n              response = _context5.sent;\n              saving.value = false;\n              getRcetas(listQuery, listQuery.per_page, listQuery.page);\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 _context5.abrupt(\"return\", response);\n\n            case 11:\n              _context5.prev = 11;\n              _context5.t0 = _context5[\"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 quitar receta\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n              throw _context5.t0;\n\n            case 16:\n            case \"end\":\n              return _context5.stop();\n          }\n        }\n      }, _callee5, null, [[1, 11]]);\n    }));\n\n    return function quitarReceta(_x6, _x7) {\n      return _ref5.apply(this, arguments);\n    };\n  }();\n\n  return {\n    quitarReceta: quitarReceta,\n    getRcetas: getRcetas,\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/Clonar/useAlimentosDieta.js?");

/***/ })

}]);