{"version":3,"sources":["webpack:///./src/components/PublicComponents/CreateDireccion.vue?be1f","webpack:///./src/components/PublicComponents/MisPedidos.vue?2c13","webpack:///./src/services/newsletter.service.js","webpack:///./src/components/PublicComponents/Profile.vue?b8d6","webpack:///./src/components/PublicComponents/CreateDireccion.vue?fbd8","webpack:///./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js","webpack:///./src/services/ciudades.service.js","webpack:///src/components/PublicComponents/CreateDireccion.vue","webpack:///./src/components/PublicComponents/CreateDireccion.vue?e912","webpack:///./src/components/PublicComponents/CreateDireccion.vue","webpack:///./src/components/PublicComponents/MisPedidos.vue?0848","webpack:///src/components/PublicComponents/MisPedidos.vue","webpack:///./src/components/PublicComponents/MisPedidos.vue?dcde","webpack:///./src/components/PublicComponents/MisPedidos.vue","webpack:///src/components/PublicComponents/Profile.vue","webpack:///./src/components/PublicComponents/Profile.vue?a85d","webpack:///./src/components/PublicComponents/Profile.vue","webpack:///./src/services/users.service.js","webpack:///./src/components/PublicComponents/Profile.vue?43f7"],"names":["NewsletterService","axios","get","process","data","post","id","emailencoded","email","headers","responseType","render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","$t","attrs","ref","nombresState","modeEdit","model","value","form","callback","$$v","$set","trim","expression","apellidosState","nacimientoState","maxDateBirthday","staticStyle","newsletter","_e","on","$event","handleDeletePerfil","inProcess","desHacerModoEdit","handleSubmit","actualPasswordState","formPassword","nuevoPasswordState","reNuevoPasswordState","handleChangePassword","staticRenderFns","identificacionState","formDireccion","ciudades","ciudadState","direccionState","handleSubmitDireccion","direccionEnEdicion","desHacerModoEditDireccion","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","unsupportedIterableToArray","length","i","F","s","n","done","e","f","TypeError","err","normalCompletion","didErr","call","step","next","_e2","CategoriasService","name","props","direccionesService","ciudadesService","ciudad_id","direccion","torre_manzana","apto_casa","cx","cy","observaciones","identificacion","map","google","mapConfig","center","lat","lng","zoom","streetViewControl","restriction","location","searchResults","service","autocomplete","direccionAutocomplete","objectPoligonoCobertura","objectMarcador","enCobertura","poligonoCobertura","bounds","created","methods","fetchAreaCobertura","initAutocomplete","maps","places","Autocomplete","addListener","construirDireccion","direccionObject","geometry","title","variant","message","componentType","calle","component","long_name","ruta","barrio","localidad","changePointer","setPosition","setCenter","ajustarEnPunto","initializeMap","north","south","west","east","latLngBounds","BOGOTA_BOUNDS","strictBounds","Map","mapContainer","addMarker","addZonaDeCobertura","Polygon","paths","strokeColor","strokeOpacity","strokeWeight","fillColor","fillOpacity","setMap","Marker","position","draggable","animation","Animation","DROP","recoveryCiudades","validationDireccion","editarDireccion","crearDireccion","$emit","validIdentificacion","validDireccion","validacionCiudad_id","extend","getPosition","fitBounds","setZoom","computed","watch","newValue","class","$route","pedidos","windowWidth","fields","loadingData","sortBy","sortDesc","perPage","currentPage","scopedSlots","_u","key","fn","_f","item","fecha","secondsToHM","hora_inicio","hora_fin","pago","status_del_pago","estadoDelPedido","estado_del_pedido","text","total","productos","toggleDetails","detailsShowing","toUpperCase","wompiCheckout","domProps","publicKeyWompi","codigo_pedido","proxy","_l","producto","index","cantidad","presentacion","precio_unitario","es_adicion","rows","optionsPerPage","mixins","Helpers","pedidosService","window","innerWidth","itemSeleted","mounted","getItemsForList","$nextTick","addEventListener","beforeDestroy","removeEventListener","console","log","forEach","suma","element","getToken","components","CreateDireccion","MisPedidos","newsletterService","usersService","nombres","apellidos","telefono","nacimiento","actualPassword","nuevoPassword","reNuevoPassword","$moment","format","direcciones","from","titleModal","messageModal","action","deletePerfil","then","result","status","deleteDireccion","ejecuteDelete","recoveryDirecciones","validationPassword","editPassword","validActualPassword","validNuevoPassword","validReNuevoPassword","validation","editRegister","suscribe","idioma","$i18n","locale","error","unsuscribeByEmail","toString","validNombres","validApellidos","validNacimiento","getUserData","allFirstLettersUpperCase","editDireccion","changeDireccionEdited","filter","event","push","UsersService","delete","put"],"mappings":"kHAAA,W,oCCAA,W,gJCEqBA,E,4FACnB,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OAAOH,IAAMwS,IAAItS,oEAA0DC,K,4BAE7E,SAAeA,GACb,OAAOH,IAAMwS,IAAItS,sEAA4DC,K,yBAG/E,SAAYA,GACV,OAAOH,IAAMI,KAAKF,yDAA+CC,K,0BAGnE,WACE,OAAOH,IAAMuS,OAAOrS,kE,wCCpCxB","file":"js/chunk-67665a08.e423a42d.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CreateDireccion.vue?vue&type=style&index=0&id=6418c943&lang=scss&scoped=true&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MisPedidos.vue?vue&type=style&index=0&id=126ffbe0&lang=scss&scoped=true&\"","import axios from \"axios\";\r\n\r\nexport default class NewsletterService {\r\n  getAll() {\r\n    return axios.get(process.env.VUE_APP_API_PUBLIC + \"newsletter\");\r\n  }\r\n  suscribe(data) {\r\n    return axios.post(process.env.VUE_APP_API_PUBLIC + \"newsletter\", data);\r\n  }\r\n  unsuscribe(id) {\r\n    return axios.get(\r\n      process.env.VUE_APP_API_PUBLIC + \"newsletter/unsuscribe/\" + id\r\n    );\r\n  }\r\n  unsuscribeMailEncoded(emailencoded) {\r\n    return axios.get(\r\n      process.env.VUE_APP_API_PUBLIC + \"newsletter/unsuscribe/m/\" + emailencoded\r\n    );\r\n  }\r\n  unsuscribeByEmail(email) {\r\n    return axios.get(\r\n      process.env.VUE_APP_API_PUBLIC + \"newsletter/unsuscribe/email/\" + email\r\n    );\r\n  }\r\n  delete(id) {\r\n    return axios.get(\r\n      process.env.VUE_APP_API_PUBLIC + \"newsletter/admin/unsuscribe/\" + id\r\n    );\r\n  }\r\n  sendNewsletter(id) {\r\n    return axios.get(\r\n      process.env.VUE_APP_API_PUBLIC + \"newsletter/sendmails/\" + id\r\n    );\r\n  }\r\n  getFileOfEmails() {\r\n    //add header Allow-Control-Allow-Origin: *\r\n    const headers = {\r\n      \"Access-Control-Allow-Origin\": \"*\",\r\n      \"Content-Type\": \"text/csv\"\r\n    };\r\n    return axios.get(process.env.VUE_APP_API_PUBLIC + \"newsletter/email\", {\r\n      headers: headers,\r\n      responseType: \"blob\"\r\n    });    \r\n  }\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container-cental\"},[_c('h1',{staticClass:\"mt-5 mb-5\"},[_vm._v(_vm._s(_vm.$t(\"messages.profile\")))]),_c('b-tabs',{attrs:{\"content-class\":\"mt-3\"}},[_c('b-tab',{attrs:{\"title\":_vm.$t('messages.information'),\"active\":\"\"}},[_c('b-form',{ref:\"formEditUser\"},[_c('div',{staticClass:\"row p-3 mb-5\"},[_c('b-form-group',{staticClass:\"col-md-6 col-lg-4\",attrs:{\"label\":_vm.$t('messages.firstnames') + '*',\"label-for\":\"nombres\"}},[_c('b-form-input',{ref:\"nombres\",attrs:{\"id\":\"nombres\",\"type\":\"text\",\"state\":_vm.nombresState,\"required\":\"\",\"disabled\":!_vm.modeEdit},model:{value:(_vm.form.nombres),callback:function ($$v) {_vm.$set(_vm.form, \"nombres\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"form.nombres\"}})],1),_c('b-form-group',{staticClass:\"col-md-6 col-lg-4\",attrs:{\"label\":_vm.$t('messages.lastnames') + '*',\"label-for\":\"apellidos\"}},[_c('b-form-input',{ref:\"apellidos\",attrs:{\"id\":\"apellidos\",\"type\":\"text\",\"state\":_vm.apellidosState,\"required\":\"\",\"disabled\":!_vm.modeEdit},model:{value:(_vm.form.apellidos),callback:function ($$v) {_vm.$set(_vm.form, \"apellidos\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"form.apellidos\"}})],1),_c('b-form-group',{staticClass:\"col-md-6 col-lg-4\",attrs:{\"label\":_vm.$t('messages.email') + '*',\"label-for\":\"email\"}},[_c('b-form-input',{attrs:{\"disabled\":\"\"},model:{value:(_vm.email),callback:function ($$v) {_vm.email=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"email\"}})],1),_c('b-form-group',{staticClass:\"col-md-6 col-lg-4\",attrs:{\"label\":_vm.$t('messages.phone') + '*',\"label-for\":\"telefono\"}},[_c('b-form-input',{ref:\"telefono\",attrs:{\"placeholder\":\"+(XX)XXX-XXXXXXX\",\"id\":\"telefono\",\"type\":\"text\",\"disabled\":!_vm.modeEdit},model:{value:(_vm.form.telefono),callback:function ($$v) {_vm.$set(_vm.form, \"telefono\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"form.telefono\"}})],1),_c('b-form-group',{staticClass:\"col-md-6 col-lg-4\",attrs:{\"label\":_vm.$t('messages.birthdate') + '*',\"label-for\":\"nacimiento\"}},[_c('b-form-input',{ref:\"nacimiento\",attrs:{\"id\":\"nacimiento\",\"type\":\"date\",\"state\":_vm.nacimientoState,\"max\":_vm.maxDateBirthday,\"required\":\"\",\"disabled\":!_vm.modeEdit,\"locale\":\"en-EN\"},model:{value:(_vm.form.nacimiento),callback:function ($$v) {_vm.$set(_vm.form, \"nacimiento\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"form.nacimiento\"}})],1),_c('b-form-group',{staticClass:\"col-sm-12 mt-5\",staticStyle:{\"display\":\"flex\",\"justify-content\":\"left\"}},[_c('b-form-checkbox',{ref:\"newsletter\",attrs:{\"id\":\"newsletter\",\"name\":\"newsletter\",\"disabled\":!_vm.modeEdit},model:{value:(_vm.newsletter),callback:function ($$v) {_vm.newsletter=$$v},expression:\"newsletter\"}},[_vm._v(_vm._s(_vm.$t(\"messages.IWantNewsletter\")))])],1)],1),(!_vm.modeEdit)?_c('b-button',{staticClass:\"mb-3\",attrs:{\"variant\":\"primary\"},on:{\"click\":function($event){_vm.modeEdit = true}}},[_vm._v(_vm._s(_vm.$t(\"messages.edit\")))]):_vm._e(),(!_vm.modeEdit)?_c('b-button',{staticClass:\"mb-3 ml-2\",attrs:{\"variant\":\"warning\"},on:{\"click\":_vm.handleDeletePerfil}},[_vm._v(_vm._s(_vm.$t(\"messages.deleteProfile\")))]):_vm._e(),(_vm.modeEdit)?_c('b-button',{staticClass:\"mb-3\",attrs:{\"variant\":\"secondary\",\"disabled\":_vm.inProcess},on:{\"click\":_vm.desHacerModoEdit}},[_vm._v(_vm._s(_vm.$t(\"messages.cancel\")))]):_vm._e(),(_vm.modeEdit)?_c('b-button',{staticClass:\"ml-3 mb-3\",attrs:{\"variant\":\"primary\",\"disabled\":_vm.inProcess},on:{\"click\":_vm.handleSubmit}},[_vm._v(_vm._s(_vm.$t(\"messages.accept\")))]):_vm._e()],1)],1),_c('b-tab',{attrs:{\"title\":_vm.$t('messages.changePassword')}},[_c('b-form',{ref:\"formEditPassword\"},[_c('div',{staticClass:\"row p-3 mb-5\"},[_c('b-form-group',{staticClass:\"col-md-6 col-lg-4\",attrs:{\"label\":_vm.$t('messages.actualPassword') + '*',\"label-for\":\"actualPassword\"}},[_c('b-form-input',{ref:\"actualPassword\",attrs:{\"id\":\"actualPassword\",\"type\":\"password\",\"state\":_vm.actualPasswordState,\"required\":\"\"},model:{value:(_vm.formPassword.actualPassword),callback:function ($$v) {_vm.$set(_vm.formPassword, \"actualPassword\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formPassword.actualPassword\"}})],1),_c('b-form-group',{staticClass:\"col-md-6 col-lg-4\",attrs:{\"label\":_vm.$t('messages.newPassword') + '*',\"label-for\":\"nuevoPassword\"}},[_c('b-form-input',{ref:\"nuevoPassword\",attrs:{\"id\":\"nuevoPassword\",\"type\":\"password\",\"state\":_vm.nuevoPasswordState,\"required\":\"\"},model:{value:(_vm.formPassword.nuevoPassword),callback:function ($$v) {_vm.$set(_vm.formPassword, \"nuevoPassword\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formPassword.nuevoPassword\"}})],1),_c('b-form-group',{staticClass:\"col-md-6 col-lg-4\",attrs:{\"label\":_vm.$t('messages.repeatNewPassword') + '*',\"label-for\":\"reNuevoPassword\"}},[_c('b-form-input',{ref:\"reNuevoPassword\",attrs:{\"id\":\"reNuevoPassword\",\"type\":\"password\",\"state\":_vm.reNuevoPasswordState,\"required\":\"\"},model:{value:(_vm.formPassword.reNuevoPassword),callback:function ($$v) {_vm.$set(_vm.formPassword, \"reNuevoPassword\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formPassword.reNuevoPassword\"}})],1)],1),_c('b-button',{attrs:{\"variant\":\"primary\",\"disabled\":_vm.inProcess},on:{\"click\":_vm.handleChangePassword}},[_vm._v(_vm._s(_vm.$t(\"messages.changePassword\")))])],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-form',{ref:\"formDireccion\"},[_c('div',{ref:\"googleMap\",staticClass:\"google-map\",staticStyle:{\"height\":\"300px\"}}),_c('div',{staticClass:\"row p-3 mb-5\"},[_c('div',{staticClass:\"col-12 container-searcher\"},[_c('label',{staticClass:\"mr-2\",attrs:{\"for\":\"inputAutocomplete\"}},[_vm._v(\"Busca tu dirección aqui:\")]),_c('input',{ref:\"inputAutocomplete\",attrs:{\"id\":\"inputAutocomplete\",\"name\":\"inputAutocomplete\",\"required\":\"\",\"autocomplete\":\"off\"}})]),_c('b-form-group',{staticClass:\"col-md-4\",attrs:{\"label\":\"Nombre de la dirección *\",\"label-for\":\"identificacion_direccion\"}},[_c('b-form-input',{ref:\"identificacion\",attrs:{\"id\":\"identificacion_direccion\",\"type\":\"text\",\"state\":_vm.identificacionState,\"required\":\"\"},model:{value:(_vm.formDireccion.identificacion),callback:function ($$v) {_vm.$set(_vm.formDireccion, \"identificacion\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formDireccion.identificacion\"}})],1),_c('b-form-group',{staticClass:\"col-md-4\",attrs:{\"id\":\"ciudad\",\"label\":\"Ciudad *:\",\"label-for\":\"ciudad\"}},[_c('b-form-select',{ref:\"ciudadSelect\",attrs:{\"id\":\"ciudad\",\"options\":_vm.ciudades,\"state\":_vm.ciudadState,\"required\":\"\"},model:{value:(_vm.formDireccion.ciudad_id),callback:function ($$v) {_vm.$set(_vm.formDireccion, \"ciudad_id\", $$v)},expression:\"formDireccion.ciudad_id\"}})],1),_c('b-form-group',{staticClass:\"col-md-4\",attrs:{\"label\":\"Dirección *\",\"label-for\":\"direccion\"}},[_c('b-form-input',{ref:\"direccion\",attrs:{\"id\":\"direccion\",\"type\":\"text\",\"state\":_vm.direccionState,\"disabled\":\"\",\"required\":\"\"},model:{value:(_vm.formDireccion.direccion),callback:function ($$v) {_vm.$set(_vm.formDireccion, \"direccion\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formDireccion.direccion\"}})],1),_c('b-form-group',{staticClass:\"col-md-2\",attrs:{\"label\":\"N° Torre / Manzana\",\"label-for\":\"torre_manzana\"}},[_c('b-form-input',{attrs:{\"id\":\"torre_manzana\",\"type\":\"text\"},model:{value:(_vm.formDireccion.torre_manzana),callback:function ($$v) {_vm.$set(_vm.formDireccion, \"torre_manzana\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formDireccion.torre_manzana\"}})],1),_c('b-form-group',{staticClass:\"col-md-2\",attrs:{\"label\":\"N° Apto / Casa\",\"label-for\":\"apto_casa\"}},[_c('b-form-input',{attrs:{\"id\":\"apto_casa\",\"type\":\"text\"},model:{value:(_vm.formDireccion.apto_casa),callback:function ($$v) {_vm.$set(_vm.formDireccion, \"apto_casa\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formDireccion.apto_casa\"}})],1),_c('b-form-group',{staticClass:\"col-md-4\",attrs:{\"label\":\"Observaciones\",\"label-for\":\"observaciones\"}},[_c('b-form-textarea',{attrs:{\"id\":\"observaciones\",\"placeholder\":\"Explicanos más...\",\"rows\":\"2\",\"max-rows\":\"3\"},model:{value:(_vm.formDireccion.observaciones),callback:function ($$v) {_vm.$set(_vm.formDireccion, \"observaciones\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formDireccion.observaciones\"}})],1),_c('div',{staticClass:\"d-flex col-md-4 justify-content-center align-items-center\"},[_c('b-button',{attrs:{\"variant\":\"primary\",\"disabled\":_vm.inProcess},on:{\"click\":_vm.handleSubmitDireccion}},[_vm._v(_vm._s(_vm.direccionEnEdicion ? \"Guardar Edición\" : \"Agregar\"))]),(_vm.direccionEnEdicion)?_c('b-button',{staticClass:\"ml-3\",attrs:{\"variant\":\"danger\",\"disabled\":_vm.inProcess},on:{\"click\":_vm.desHacerModoEditDireccion}},[_vm._v(\"Cancelar\")]):_vm._e()],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nexport default function _createForOfIteratorHelper(o, allowArrayLike) {\n  var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n\n  if (!it) {\n    if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n      if (it) o = it;\n      var i = 0;\n\n      var F = function F() {};\n\n      return {\n        s: F,\n        n: function n() {\n          if (i >= o.length) return {\n            done: true\n          };\n          return {\n            done: false,\n            value: o[i++]\n          };\n        },\n        e: function e(_e) {\n          throw _e;\n        },\n        f: F\n      };\n    }\n\n    throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n  }\n\n  var normalCompletion = true,\n      didErr = false,\n      err;\n  return {\n    s: function s() {\n      it = it.call(o);\n    },\n    n: function n() {\n      var step = it.next();\n      normalCompletion = step.done;\n      return step;\n    },\n    e: function e(_e2) {\n      didErr = true;\n      err = _e2;\n    },\n    f: function f() {\n      try {\n        if (!normalCompletion && it[\"return\"] != null) it[\"return\"]();\n      } finally {\n        if (didErr) throw err;\n      }\n    }\n  };\n}","import axios from \"axios\";\r\n\r\nexport default class CategoriasService {\r\n  getAll(){\r\n    return axios.get(process.env.VUE_APP_API_PUBLIC + \"ciudades/all\")\r\n  }  \r\n}\r\n","<template>\r\n  <b-form ref=\"formDireccion\">\r\n    <div class=\"google-map\" ref=\"googleMap\" style=\"height: 300px\"></div>\r\n    <div class=\"row p-3 mb-5\">\r\n      <div class=\"col-12 container-searcher\">\r\n        <label for=\"inputAutocomplete\" class=\"mr-2\"\r\n          >Busca tu dirección aqui:</label\r\n        >\r\n        <input\r\n          ref=\"inputAutocomplete\"\r\n          id=\"inputAutocomplete\"\r\n          name=\"inputAutocomplete\"\r\n          required\r\n          autocomplete=\"off\"\r\n        />\r\n      </div>\r\n      <!-- identificacion-->\r\n      <b-form-group\r\n        label=\"Nombre de la dirección *\"\r\n        label-for=\"identificacion_direccion\"\r\n        class=\"col-md-4\"\r\n      >\r\n        <b-form-input\r\n          id=\"identificacion_direccion\"\r\n          v-model.trim=\"formDireccion.identificacion\"\r\n          type=\"text\"\r\n          ref=\"identificacion\"\r\n          :state=\"identificacionState\"\r\n          required\r\n        ></b-form-input>\r\n      </b-form-group>\r\n      <!-- ciudad_id-->\r\n      <b-form-group\r\n        id=\"ciudad\"\r\n        label=\"Ciudad *:\"\r\n        label-for=\"ciudad\"\r\n        class=\"col-md-4\"\r\n      >\r\n        <b-form-select\r\n          id=\"ciudad\"\r\n          v-model=\"formDireccion.ciudad_id\"\r\n          :options=\"ciudades\"\r\n          ref=\"ciudadSelect\"\r\n          :state=\"ciudadState\"\r\n          required\r\n        ></b-form-select>\r\n      </b-form-group>\r\n      <!-- direccion-->\r\n      <b-form-group label=\"Dirección *\" label-for=\"direccion\" class=\"col-md-4\">\r\n        <b-form-input\r\n          id=\"direccion\"\r\n          v-model.trim=\"formDireccion.direccion\"\r\n          type=\"text\"\r\n          ref=\"direccion\"\r\n          :state=\"direccionState\"\r\n          disabled\r\n          required\r\n        ></b-form-input>\r\n      </b-form-group>\r\n      <!-- torre_manzana-->\r\n      <b-form-group\r\n        label=\"N° Torre / Manzana\"\r\n        label-for=\"torre_manzana\"\r\n        class=\"col-md-2\"\r\n      >\r\n        <b-form-input\r\n          id=\"torre_manzana\"\r\n          v-model.trim=\"formDireccion.torre_manzana\"\r\n          type=\"text\"\r\n        ></b-form-input>\r\n      </b-form-group>\r\n      <!-- apto_casa-->\r\n      <b-form-group\r\n        label=\"N° Apto / Casa\"\r\n        label-for=\"apto_casa\"\r\n        class=\"col-md-2\"\r\n      >\r\n        <b-form-input\r\n          id=\"apto_casa\"\r\n          v-model.trim=\"formDireccion.apto_casa\"\r\n          type=\"text\"\r\n        ></b-form-input>\r\n      </b-form-group>\r\n      <!-- observaciones-->\r\n      <b-form-group\r\n        label=\"Observaciones\"\r\n        label-for=\"observaciones\"\r\n        class=\"col-md-4\"\r\n      >\r\n        <b-form-textarea\r\n          id=\"observaciones\"\r\n          v-model.trim=\"formDireccion.observaciones\"\r\n          placeholder=\"Explicanos más...\"\r\n          rows=\"2\"\r\n          max-rows=\"3\"\r\n        ></b-form-textarea>\r\n      </b-form-group>\r\n      <!-- cx -->\r\n      <!-- cy -->\r\n\r\n      <div class=\"d-flex col-md-4 justify-content-center align-items-center\">\r\n        <b-button\r\n          variant=\"primary\"\r\n          @click=\"handleSubmitDireccion\"\r\n          :disabled=\"inProcess\"\r\n          >{{ direccionEnEdicion ? \"Guardar Edición\" : \"Agregar\" }}</b-button\r\n        >\r\n        <b-button\r\n          variant=\"danger\"\r\n          class=\"ml-3\"\r\n          :disabled=\"inProcess\"\r\n          v-if=\"direccionEnEdicion\"\r\n          @click=\"desHacerModoEditDireccion\"\r\n          >Cancelar</b-button\r\n        >\r\n      </div>\r\n    </div>\r\n  </b-form>\r\n</template>\r\n\r\n<script>\r\nimport DireccionesService from \"@/services/direcciones.service\";\r\nimport CiudadesService from \"@/services/ciudades.service\";\r\nimport { mapGetters } from \"vuex\";\r\nimport EventBus from \"@/services/eventBus.js\";\r\nimport GoogleMapsApiLoader from \"google-maps-api-loader\";\r\nexport default {\r\n  name: \"CreateDireccion\",\r\n  props: { direccionEnEdicion: Object },\r\n  data() {\r\n    return {\r\n      direccionesService: null,\r\n      ciudadesService: null,\r\n      formDireccion: {\r\n        id: null,\r\n        ciudad_id: null,\r\n        direccion: null,\r\n        torre_manzana: \"\",\r\n        apto_casa: \"\",\r\n        cx: 0,\r\n        cy: 0,\r\n        observaciones: \"\",\r\n        identificacion: null,\r\n      },\r\n      inProcess: false,\r\n      ciudades: [{ text: \"Seleccione una ciudad\", value: null }],\r\n      ciudadState: null,\r\n      direccionState: null,\r\n      identificacionState: null,\r\n      map: null,\r\n      google: null,\r\n      mapConfig: {\r\n        center: {\r\n          lat: 4.683359696392844,\r\n          lng: -74.08041937443866,\r\n        },\r\n        zoom: 11,\r\n        streetViewControl: false,\r\n        restriction: null,\r\n      },\r\n      center: {\r\n        lat: 4.683359696392844,\r\n        lng: -74.08041937443866,\r\n      },\r\n      location: \"\",\r\n      searchResults: [],\r\n      service: null,\r\n      autocomplete: null,\r\n      direccionAutocomplete: null,\r\n      objectPoligonoCobertura: null,\r\n      objectMarcador: null,\r\n      enCobertura: false,\r\n      poligonoCobertura: [],\r\n      bounds: null,\r\n    };\r\n  },\r\n  created() {\r\n    this.ciudadesService = new CiudadesService();\r\n    this.direccionesService = new DireccionesService();\r\n  },\r\n  async mounted() {\r\n    this.fetchAreaCobertura();\r\n    this.recoveryCiudades();\r\n    const googleMapApi = await GoogleMapsApiLoader({\r\n      libraries: [\"places\"],\r\n      apiKey: \"AIzaSyCFnBjvp7-DXvPyohgfyFPUmRFH4o1CEUM\",\r\n    });\r\n    this.google = googleMapApi;\r\n    this.bounds = new this.google.maps.LatLngBounds();\r\n    this.initAutocomplete();\r\n    this.initializeMap();\r\n  },\r\n  methods: {\r\n    fetchAreaCobertura() {\r\n      this.poligonoCobertura = [...this.direccionesService.getAreaCobertura()];\r\n    },\r\n    initAutocomplete() {\r\n      const address1Field = document.querySelector(\"#inputAutocomplete\");\r\n\r\n      const cityBounds = new this.google.maps.LatLngBounds(\r\n        new this.google.maps.LatLng(4.4877184702656026, -74.01378714167592),\r\n        new this.google.maps.LatLng(5.043051377397914, -74.25418645127117)\r\n      );\r\n\r\n      this.autocomplete = new this.google.maps.places.Autocomplete(\r\n        address1Field,\r\n        {\r\n          bounds: cityBounds,\r\n          strictBounds: false,\r\n          componentRestrictions: { country: [\"co\"] },\r\n          fields: [\"address_components\", \"geometry\"],\r\n          types: [\"address\"],\r\n        }\r\n      );\r\n      this.autocomplete.addListener(\"place_changed\", () => {\r\n        this.construirDireccion(this.autocomplete.getPlace());\r\n      });\r\n    },\r\n    construirDireccion(direccionObject) {\r\n      let ruta = \"\";\r\n      let calle = \"\";\r\n      let barrio = \"\";\r\n      let localidad = \"\";\r\n      this.formDireccion.direccion = \"\";\r\n      this.enCobertura = false;\r\n      if (!direccionObject.geometry) {\r\n        EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n          title: \"Cuidado\",\r\n          variant: \"danger\",\r\n          message: \"Debes seleccionar una direccion de la lista\",\r\n        });\r\n        return false\r\n      }\r\n      this.direccionesService\r\n        .verificarCobertura({\r\n          lat: direccionObject.geometry.location.lat(),\r\n          lng: direccionObject.geometry.location.lng(),\r\n        })\r\n        .then((result) => {\r\n          if (result.data.data) {\r\n            this.enCobertura = true;\r\n            for (const component of direccionObject.address_components) {\r\n              const componentType = component.types[0];\r\n              switch (componentType) {\r\n                case \"street_number\":\r\n                  calle = component.long_name;\r\n                  break;\r\n                case \"route\":\r\n                  ruta = component.long_name;\r\n                  break;\r\n                case \"neighborhood\":\r\n                  barrio = component.long_name;\r\n                  break;\r\n                case \"sublocality_level_1\":\r\n                  localidad = component.long_name;\r\n                  break;\r\n                default:\r\n                  break;\r\n              }\r\n            }\r\n            this.formDireccion.direccion = `${ruta} ${calle}${\r\n              barrio != \"\" ? \", \" + barrio : \"\"\r\n            }${localidad != \"\" ? \", \" + localidad : \"\"}`;\r\n            EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n              title: \"Felicidades\",\r\n              variant: \"success\",\r\n              message: \"Dirección dentro de la zona de cobertura\",\r\n            });\r\n          } else {\r\n            EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n              title: \"Cuidado\",\r\n              variant: \"danger\",\r\n              message:\r\n                \"Dirección fuera de la zona de la zona de cobertura, intenta con otra dirección\",\r\n            });\r\n          }\r\n        })\r\n        .catch((err) => {\r\n          console.log(err);\r\n        });\r\n      this.center.lat = direccionObject.geometry.location.lat();\r\n      this.center.lng = direccionObject.geometry.location.lng();\r\n      this.formDireccion.cx = direccionObject.geometry.location.lng();\r\n      this.formDireccion.cy = direccionObject.geometry.location.lat();\r\n      this.changePointer();\r\n    },\r\n    changePointer() {\r\n      this.objectMarcador.setPosition(this.center);\r\n      this.map.setCenter(this.center);\r\n      this.ajustarEnPunto();\r\n    },\r\n    initializeMap() {\r\n      const mapContainer = this.$refs.googleMap;\r\n      const BOGOTA_BOUNDS = {\r\n        north: 5.043051377397914,\r\n        south: 4.4877184702656026,\r\n        west: -75.25418645127117,\r\n        east: -73.01378714167592,\r\n      };\r\n      this.mapConfig.restriction = {\r\n        latLngBounds: BOGOTA_BOUNDS,\r\n        strictBounds: false,\r\n      };\r\n      this.map = new this.google.maps.Map(mapContainer, this.mapConfig);\r\n      this.addMarker();\r\n      this.addZonaDeCobertura();\r\n    },\r\n    addZonaDeCobertura() {\r\n      this.objectPoligonoCobertura = new this.google.maps.Polygon({\r\n        paths: this.poligonoCobertura,\r\n        strokeColor: \"#FF0000\",\r\n        strokeOpacity: 0.8,\r\n        strokeWeight: 2,\r\n        fillColor: \"#FF0000\",\r\n        fillOpacity: 0.1,\r\n      });\r\n      this.objectPoligonoCobertura.setMap(this.map);\r\n    },\r\n    addMarker() {\r\n      this.objectMarcador = new this.google.maps.Marker({\r\n        position: this.center,\r\n        map: this.map,\r\n        draggable: false,\r\n        title: \"Esta es tu dirección seleccionada\",\r\n        animation: this.google.maps.Animation.DROP,\r\n      });\r\n    },\r\n    recoveryCiudades() {\r\n      this.ciudadesService\r\n        .getAll()\r\n        .then((result) => {\r\n          if (result.data.status == 200) {\r\n            result.data.data.map((item) => {\r\n              this.ciudades.push({ text: item.nombre, value: item.id });\r\n            });\r\n          }\r\n        })\r\n        .catch((err) => {\r\n          console.error(err);\r\n        });\r\n    },\r\n    handleSubmitDireccion() {\r\n      if (!this.validationDireccion()) {\r\n        EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n          title: \"Error\",\r\n          variant: \"warning\",\r\n          message: \"Debes completar los campos requeridos\",\r\n        });\r\n        return false;\r\n      }\r\n      if (!this.enCobertura) {\r\n        EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n          title: \"Felicidades\",\r\n          variant: \"danger\",\r\n          message:\r\n            \"Dirección fuera de la zona de la zona de cobertura, intenta con otra dirección\",\r\n        });\r\n        return false;\r\n      }\r\n      if (this.direccionEnEdicion) {\r\n        this.editarDireccion();\r\n      } else {\r\n        this.crearDireccion();\r\n      }\r\n    },\r\n    desHacerModoEditDireccion() {\r\n      this.$emit(\"noedit\");\r\n    },\r\n    validationDireccion() {\r\n      /* Identificacion */\r\n      const validIdentificacion = this.$refs.identificacion.checkValidity();\r\n      this.identificacionState = validIdentificacion;\r\n      /* direccion */\r\n      const validDireccion = this.$refs.direccion.checkValidity();\r\n      this.direccionState = validDireccion;\r\n      /* ciudad_id */\r\n      const validacionCiudad_id = this.$refs.ciudadSelect.required\r\n        ? this.$refs.ciudadSelect.value\r\n          ? true\r\n          : false\r\n        : true;\r\n      this.ciudadState = validacionCiudad_id;\r\n      return validacionCiudad_id && validDireccion && validIdentificacion;\r\n    },\r\n    crearDireccion() {\r\n      this.direccionesService\r\n        .createDireccion(this.formDireccion)\r\n        .then((result) => {\r\n          if (result.data.status == 200) {\r\n            EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n              title: \"Felicidades\",\r\n              variant: \"success\",\r\n              message: \"Dirección guardada\",\r\n            });\r\n            this.$emit(\"saved\", { ...result.data.data });\r\n            this.formDireccion = {\r\n              id: null,\r\n              ciudad_id: null,\r\n              direccion: null,\r\n              torre_manzana: \"\",\r\n              apto_casa: \"\",\r\n              cx: 0,\r\n              cy: 0,\r\n              observaciones: \"\",\r\n              identificacion: null,\r\n            };\r\n          } else {\r\n            EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n              title: \"Error\",\r\n              variant: \"warning\",\r\n              message: \"La dirección no se guardó\",\r\n            });\r\n          }\r\n        })\r\n        .catch((err) => {\r\n          console.error(err);\r\n        });\r\n    },\r\n    editarDireccion() {\r\n      this.direccionesService\r\n        .editDireccion(this.formDireccion)\r\n        .then((result) => {\r\n          if (result.data.status == 200) {\r\n            EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n              title: \"Felicidades\",\r\n              variant: \"success\",\r\n              message: \"Dirección editada\",\r\n            });\r\n            this.$emit(\"edited\", { ...result.data.data });\r\n          } else {\r\n            EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n              title: \"Error\",\r\n              variant: \"warning\",\r\n              message: \"La dirección no se guardó\",\r\n            });\r\n          }\r\n        })\r\n        .catch((err) => {\r\n          console.error(err);\r\n        });\r\n    },\r\n    ajustarEnPunto() {\r\n      let bounds = new this.google.maps.LatLngBounds();\r\n      bounds.extend(this.objectMarcador.getPosition());\r\n      this.map.fitBounds(bounds);\r\n      this.map.setZoom(16);\r\n    },\r\n  },\r\n  computed: {\r\n    ...mapGetters([\"getUserData\"]),\r\n  },\r\n  watch: {\r\n    direccionEnEdicion(newValue) {\r\n      if (newValue) {\r\n        this.enCobertura = true;\r\n        this.formDireccion = { ...newValue };\r\n        this.identificacionState = true;\r\n        this.direccionState = true;\r\n        this.ciudadState = true;\r\n        this.center.lat = this.formDireccion.cy;\r\n        this.center.lng = this.formDireccion.cx;\r\n        this.changePointer();\r\n      } else {\r\n        this.formDireccion = {\r\n          id: null,\r\n          ciudad_id: null,\r\n          direccion: null,\r\n          torre_manzana: \"\",\r\n          apto_casa: \"\",\r\n          cx: 0,\r\n          cy: 0,\r\n          observaciones: \"\",\r\n          identificacion: null,\r\n        };\r\n        this.enCobertura = false;\r\n      }\r\n    },\r\n  },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.container-searcher {\r\n  border-radius: 5px;\r\n  border: 1.5px solid #c9719d;\r\n  padding: 15px 10px;\r\n  display: flex;\r\n  flex-wrap: wrap;\r\n  align-items: center;\r\n  justify-content: left;\r\n  margin-bottom: 15px;\r\n}\r\n.container-searcher label {\r\n  font-weight: bold;\r\n  width: 30%;\r\n  text-align: right;\r\n  margin: 0px;\r\n}\r\n#inputAutocomplete {\r\n  width: 50%;\r\n  height: calc(1.5em + 0.75rem + 2px);\r\n  padding: 0.375rem 0.75rem;\r\n  font-size: 1rem;\r\n  font-weight: 400;\r\n  line-height: 1.5;\r\n  color: #495057;\r\n  background-color: #fff;\r\n  background-clip: padding-box;\r\n  border: 1px solid #ced4da;\r\n  border-radius: 0.25rem;\r\n  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\r\n}\r\n\r\n@media (max-width: 600px) {\r\n  .container-searcher label {\r\n    width: 100%;\r\n    text-align: left;\r\n    margin-bottom: 10px;\r\n  }\r\n  #inputAutocomplete {\r\n    width: 100%;\r\n  }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CreateDireccion.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CreateDireccion.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CreateDireccion.vue?vue&type=template&id=6418c943&scoped=true&\"\nimport script from \"./CreateDireccion.vue?vue&type=script&lang=js&\"\nexport * from \"./CreateDireccion.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CreateDireccion.vue?vue&type=style&index=0&id=6418c943&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"6418c943\",\n  null\n  \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:{ 'container-cental': _vm.$route.name === 'MisPedidos' }},[(_vm.$route.name === 'MisPedidos')?_c('h1',{staticClass:\"mt-5 mb-5\"},[_vm._v(\"MIS PEDIDOS\")]):_vm._e(),(_vm.pedidos.length > 0)?_c('div',{staticClass:\"container-table\"},[_c('b-table',{attrs:{\"striped\":\"\",\"stacked\":_vm.windowWidth < 600,\"hover\":\"\",\"items\":_vm.pedidos,\"fields\":_vm.fields,\"busy\":_vm.loadingData,\"sort-by\":_vm.sortBy,\"sort-desc\":_vm.sortDesc,\"sort-icon-left\":\"\",\"responsive\":\"sm\",\"per-page\":_vm.perPage,\"current-page\":_vm.currentPage},on:{\"update:sortBy\":function($event){_vm.sortBy=$event},\"update:sort-by\":function($event){_vm.sortBy=$event},\"update:sortDesc\":function($event){_vm.sortDesc=$event},\"update:sort-desc\":function($event){_vm.sortDesc=$event}},scopedSlots:_vm._u([{key:\"cell(fecha_programada_entrega)\",fn:function(data){return [_c('span',[_vm._v(_vm._s(_vm._f(\"fecha\")(data.item.fecha))+\" de \"+_vm._s(_vm.secondsToHM(data.item.hora_inicio))+\" a \"+_vm._s(_vm.secondsToHM(data.item.hora_fin)))])]}},{key:\"cell(pagado)\",fn:function(data){return [_c('span',[_vm._v(_vm._s(data.item.pago ? data.item.pago.status_del_pago : \"NO\"))])]}},{key:\"cell(solicitado)\",fn:function(data){return [_c('span',[_vm._v(_vm._s(data.item.created))])]}},{key:\"cell(estado)\",fn:function(data){return [_c('span',[_vm._v(_vm._s(_vm.estadoDelPedido(data.item.estado_del_pedido).text))])]}},{key:\"cell(total)\",fn:function(data){return [_c('span',[_vm._v(\"$\"+_vm._s(_vm._f(\"numero\")(_vm.total(data.item.productos))))])]}},{key:\"cell(actions)\",fn:function(data){return [_c('b-button',{class:{ 'mr-2': true, 'mb-3': _vm.windowWidth < 600 },attrs:{\"size\":\"sm\"},on:{\"click\":data.toggleDetails}},[_vm._v(\" \"+_vm._s(data.detailsShowing ? \"Ocultar\" : \"Mostrar\")+\" Detalles \")]),(\n            data.item.pago\n              ? data.item.pago.status_del_pago.toUpperCase() != 'APPROVED' &&\n                data.item.pago.status_del_pago.toUpperCase() != 'PENDING'\n              : true\n          )?_c('form',{attrs:{\"action\":_vm.wompiCheckout,\"method\":\"GET\"}},[_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"public-key\"},domProps:{\"value\":_vm.publicKeyWompi}}),_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"currency\",\"value\":\"COP\"}}),_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"amount-in-cents\"},domProps:{\"value\":_vm.total(data.item.productos) * 100}}),_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"reference\"},domProps:{\"value\":data.item.codigo_pedido}}),_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"redirect-url\",\"value\":\"\"}}),_c('b-button',{staticClass:\"mr-2\",attrs:{\"size\":\"sm\",\"type\":\"submit\"}},[_vm._v(\" Pagar Pedido \")])],1):_vm._e()]}},{key:\"table-busy\",fn:function(){return [_c('div',{staticClass:\"text-center text-danger my-2\"},[_c('b-spinner',{staticClass:\"align-middle\"}),_c('strong',{staticStyle:{\"margin-left\":\"5px\"}},[_vm._v(\"Cargando Datos...\")])],1)]},proxy:true},{key:\"row-details\",fn:function(data){return [_c('b-card',[_vm._l((data.item.productos),function(producto,index){return _c('b-row',{key:index,staticClass:\"mb-2 row-container\"},[_c('span',{staticClass:\"ml-2\",staticStyle:{\"font-size\":\"1.3rem\"}},[_vm._v(_vm._s(producto.cantidad))]),_c('span',{staticClass:\"ml-3\"},[_vm._v(_vm._s(_vm._f(\"todasLasPrimerasMayusculas\")(producto.producto)))]),_c('span',{staticClass:\"ml-2 mr-3\",staticStyle:{\"font-size\":\"0.8rem\"}},[_vm._v(\"( \"+_vm._s(producto.presentacion)+\" )\")]),_c('span',{staticClass:\"ml-2\"},[_vm._v(_vm._s(_vm._f(\"numero\")((producto.cantidad * producto.precio_unitario))))]),(producto.es_adicion == 1)?_c('span',{staticClass:\"ml-3\"},[_vm._v(\"(adición)\")]):_vm._e()])}),_c('b-button',{attrs:{\"size\":\"sm\"},on:{\"click\":data.toggleDetails}},[_vm._v(\"Ocultar\")])],2)]}}],null,false,2001614539)})],1):_vm._e(),(_vm.pedidos.length > 0)?_c('div',{staticClass:\"container-paginator\"},[_c('b-pagination',{attrs:{\"total-rows\":_vm.rows,\"per-page\":_vm.perPage,\"aria-controls\":\"my-table\"},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}}),_c('span',{staticStyle:{\"margin-left\":\"15px\"}},[_vm._v(\"Items por página\")]),_c('b-form-select',{staticStyle:{\"width\":\"80px\",\"margin-left\":\"10px\"},attrs:{\"options\":_vm.optionsPerPage},model:{value:(_vm.perPage),callback:function ($$v) {_vm.perPage=$$v},expression:\"perPage\"}})],1):_vm._e(),(_vm.pedidos.length == 0)?_c('h2',[_vm._v(\"No tiene pedidos\")]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <div :class=\"{ 'container-cental': $route.name === 'MisPedidos' }\">\r\n    <h1 class=\"mt-5 mb-5\" v-if=\"$route.name === 'MisPedidos'\">MIS PEDIDOS</h1>\r\n    <div class=\"container-table\" v-if=\"pedidos.length > 0\">\r\n      <b-table\r\n        striped\r\n        :stacked=\"windowWidth < 600\"\r\n        hover\r\n        :items=\"pedidos\"\r\n        :fields=\"fields\"\r\n        :busy=\"loadingData\"\r\n        :sort-by.sync=\"sortBy\"\r\n        :sort-desc.sync=\"sortDesc\"\r\n        sort-icon-left\r\n        responsive=\"sm\"\r\n        :per-page=\"perPage\"\r\n        :current-page=\"currentPage\"\r\n      >\r\n        <template #cell(fecha_programada_entrega)=\"data\">\r\n          <span\r\n            >{{ data.item.fecha | fecha }} de\r\n            {{ secondsToHM(data.item.hora_inicio) }} a\r\n            {{ secondsToHM(data.item.hora_fin) }}</span\r\n          >\r\n        </template>\r\n        <template #cell(pagado)=\"data\">\r\n          <span>{{\r\n            data.item.pago ? data.item.pago.status_del_pago : \"NO\"\r\n          }}</span>\r\n        </template>\r\n        <template #cell(solicitado)=\"data\">\r\n          <span>{{ data.item.created }}</span>\r\n        </template>\r\n        <template #cell(estado)=\"data\">\r\n          <span>{{ estadoDelPedido(data.item.estado_del_pedido).text }}</span>\r\n        </template>\r\n        <template #cell(total)=\"data\">\r\n          <span>${{ total(data.item.productos) | numero }}</span>\r\n        </template>\r\n        <template #cell(actions)=\"data\">\r\n          <b-button\r\n            size=\"sm\"\r\n            @click=\"data.toggleDetails\"\r\n            :class=\"{ 'mr-2': true, 'mb-3': windowWidth < 600 }\"\r\n          >\r\n            {{ data.detailsShowing ? \"Ocultar\" : \"Mostrar\" }} Detalles\r\n          </b-button>\r\n          <form\r\n            :action=\"wompiCheckout\"\r\n            method=\"GET\"\r\n            v-if=\"\r\n              data.item.pago\r\n                ? data.item.pago.status_del_pago.toUpperCase() != 'APPROVED' &&\r\n                  data.item.pago.status_del_pago.toUpperCase() != 'PENDING'\r\n                : true\r\n            \"\r\n          >\r\n            <!-- OBLIGATORIOS -->\r\n            <input type=\"hidden\" name=\"public-key\" :value=\"publicKeyWompi\" />\r\n            <input type=\"hidden\" name=\"currency\" value=\"COP\" />\r\n            <input\r\n              type=\"hidden\"\r\n              name=\"amount-in-cents\"\r\n              :value=\"total(data.item.productos) * 100\"\r\n            />\r\n            <input\r\n              type=\"hidden\"\r\n              name=\"reference\"\r\n              :value=\"data.item.codigo_pedido\"\r\n            />\r\n            <!-- OPCIONALES -->\r\n            <input type=\"hidden\" name=\"redirect-url\" value=\"\" />\r\n            <!-- <input type=\"hidden\" name=\"tax-in-cents:vat\" value=\"IVA_EN_CENTAVOS\" />\r\n            <input type=\"hidden\" name=\"tax-in-cents:consumption\" value=\"IMPOCONSUMO_EN_CENTAVOS\" /> -->\r\n            <b-button size=\"sm\" class=\"mr-2\" type=\"submit\">\r\n              Pagar Pedido\r\n            </b-button>\r\n          </form>\r\n        </template>\r\n        <template #table-busy>\r\n          <div class=\"text-center text-danger my-2\">\r\n            <b-spinner class=\"align-middle\"></b-spinner>\r\n            <strong style=\"margin-left: 5px\">Cargando Datos...</strong>\r\n          </div>\r\n        </template>\r\n        <template #row-details=\"data\">\r\n          <b-card>\r\n            <b-row\r\n              class=\"mb-2 row-container\"\r\n              v-for=\"(producto, index) in data.item.productos\"\r\n              :key=\"index\"\r\n            >\r\n              <span class=\"ml-2\" style=\"font-size: 1.3rem\">{{\r\n                producto.cantidad\r\n              }}</span>\r\n              <span class=\"ml-3\">{{\r\n                producto.producto | todasLasPrimerasMayusculas\r\n              }}</span>\r\n              <span class=\"ml-2 mr-3\" style=\"font-size: 0.8rem\"\r\n                >( {{ producto.presentacion }} )</span\r\n              >\r\n              <span class=\"ml-2\">{{\r\n                (producto.cantidad * producto.precio_unitario) | numero\r\n              }}</span>\r\n              <span v-if=\"producto.es_adicion == 1\" class=\"ml-3\"\r\n                >(adición)</span\r\n              >\r\n            </b-row>\r\n            <b-button size=\"sm\" @click=\"data.toggleDetails\">Ocultar</b-button>\r\n          </b-card>\r\n        </template>\r\n      </b-table>\r\n    </div>\r\n    <div class=\"container-paginator\" v-if=\"pedidos.length > 0\">\r\n      <b-pagination\r\n        v-model=\"currentPage\"\r\n        :total-rows=\"rows\"\r\n        :per-page=\"perPage\"\r\n        aria-controls=\"my-table\"\r\n      ></b-pagination>\r\n      <span style=\"margin-left: 15px\">Items por página</span>\r\n      <b-form-select\r\n        v-model=\"perPage\"\r\n        :options=\"optionsPerPage\"\r\n        style=\"width: 80px; margin-left: 10px\"\r\n      ></b-form-select>\r\n    </div>\r\n    <h2 v-if=\"pedidos.length == 0\">No tiene pedidos</h2>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nimport PedidosService from \"@/services/pedidos.service\";\r\nimport EventBus from \"@/services/eventBus.js\";\r\nimport { Helpers } from \"@/mixins/Helpers\";\r\nimport { mapGetters } from \"vuex\";\r\nexport default {\r\n  name: \"MisPedidos\",\r\n  mixins: [Helpers],\r\n  data() {\r\n    return {\r\n      pedidosService: null,\r\n      sortBy: \"solicitado\",\r\n      fields: [\r\n        { key: \"codigo_pedido\", sortable: true },\r\n        { key: \"fecha_programada_entrega\", sortable: true },\r\n        { key: \"total\", sortable: true },\r\n        { key: \"pagado\", sortable: true },\r\n        { key: \"estado\", sortable: true },\r\n        { key: \"solicitado\", sortable: true },\r\n        { key: \"actions\", sortable: false },\r\n      ],\r\n      pedidos: [],\r\n      windowWidth: window.innerWidth,\r\n      loadingData: false,\r\n      perPage: 10,\r\n      currentPage: 1,\r\n      optionsPerPage: [5, 10, 25, 50, 100],\r\n      itemSeleted: null,\r\n      sortDesc: false,\r\n      wompiCheckout: process.env.VUE_APP_API_WOMPI_CHECKOUT,\r\n      publicKeyWompi: process.env.VUE_APP_API_WOMPI_PUBLIC_KEY,\r\n    };\r\n  },\r\n  created() {\r\n    this.pedidosService = new PedidosService();\r\n  },\r\n  mounted() {\r\n    this.getItemsForList();\r\n    this.$nextTick(() => {\r\n      window.addEventListener(\"resize\", () => {\r\n        this.windowWidth = window.innerWidth;\r\n      });\r\n    });\r\n  },\r\n  beforeDestroy() {\r\n    window.removeEventListener(\"resize\", () => {\r\n      this.windowWidth = window.innerWidth;\r\n    });\r\n  },\r\n  methods: {\r\n    getItemsForList() {\r\n      this.loadingData = true;\r\n      this.pedidosService\r\n        .pedidosDeUnUsuario()\r\n        .then((result) => {\r\n          this.pedidos = result.data.data.map((item) => {\r\n            item.isActive = false;\r\n            return item;\r\n          });\r\n          this.loadingData = false;\r\n        })\r\n        .catch(() => {\r\n          this.loadingData = false;\r\n          EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n            title: \"Error\",\r\n            variant: \"danger\",\r\n            message: \"Error al recuperar items de la lista\",\r\n          });\r\n        });\r\n    },\r\n    total(productos) {\r\n      let suma = 0;\r\n      console.log(\"productos\", productos);\r\n      productos.forEach((element) => {\r\n        suma += element.cantidad * element.precio_unitario;\r\n      });\r\n      return suma;\r\n    },\r\n  },\r\n  computed: {\r\n    ...mapGetters([\"getToken\"]),\r\n    rows() {\r\n      return this.pedidos.length;\r\n    },\r\n  },\r\n  watch: {\r\n    getToken() {\r\n      this.getItemsForList();\r\n    },\r\n  },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.container-cental {\r\n  width: 100%;\r\n  min-height: 700px;\r\n  padding: 0px 300px;\r\n}\r\n\r\n.container-table {\r\n  width: 100%;\r\n  min-height: 300px;\r\n  padding-bottom: 20px;\r\n}\r\n.container-paginator {\r\n  display: flex;\r\n  flex-wrap: wrap;\r\n  flex-direction: row;\r\n  justify-content: center;\r\n  align-items: baseline;\r\n  width: 100%;\r\n  padding-bottom: 20px;\r\n}\r\n.container-actions-top-table {\r\n  display: flex;\r\n  flex-wrap: wrap;\r\n  justify-content: space-between;\r\n  width: 100%;\r\n  padding: 20px 30px;\r\n}\r\n.row-container {\r\n  display: flex;\r\n  align-items: center;\r\n}\r\n@media (max-width: 1400px) {\r\n  .container-cental {\r\n    padding: 0px 10px;\r\n  }\r\n}\r\n@media (max-width: 470px) {\r\n  .container-paginator {\r\n    flex-direction: column;\r\n    align-items: center;\r\n  }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MisPedidos.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MisPedidos.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MisPedidos.vue?vue&type=template&id=126ffbe0&scoped=true&\"\nimport script from \"./MisPedidos.vue?vue&type=script&lang=js&\"\nexport * from \"./MisPedidos.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MisPedidos.vue?vue&type=style&index=0&id=126ffbe0&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"126ffbe0\",\n  null\n  \n)\n\nexport default component.exports","<template>\r\n  <div class=\"container-cental\">\r\n    <h1 class=\"mt-5 mb-5\">{{ $t(\"messages.profile\") }}</h1>\r\n    <b-tabs content-class=\"mt-3\">\r\n      <b-tab :title=\"$t('messages.information')\" active>\r\n        <b-form ref=\"formEditUser\">\r\n          <div class=\"row p-3 mb-5\">\r\n            <!-- identificacion -->\r\n            <!-- <b-form-group\r\n              :label=\"$t('messages.identification') + '*'\"\r\n              label-for=\"identificacion\"\r\n              class=\"col-md-6 col-lg-4\"\r\n            >\r\n              <b-form-input\r\n                id=\"identificacion\"\r\n                v-model.trim=\"form.identificacion\"\r\n                type=\"text\"\r\n                ref=\"identificacion\"\r\n                :state=\"identificacionState\"\r\n                required\r\n                :disabled=\"!modeEdit\"\r\n              ></b-form-input>\r\n            </b-form-group> -->\r\n            <!-- nombres -->\r\n            <b-form-group :label=\"$t('messages.firstnames') + '*'\" label-for=\"nombres\" class=\"col-md-6 col-lg-4\">\r\n              <b-form-input id=\"nombres\" v-model.trim=\"form.nombres\" type=\"text\" ref=\"nombres\" :state=\"nombresState\"\r\n                required :disabled=\"!modeEdit\"></b-form-input>\r\n            </b-form-group>\r\n            <!-- apellidos -->\r\n            <b-form-group :label=\"$t('messages.lastnames') + '*'\" label-for=\"apellidos\" class=\"col-md-6 col-lg-4\">\r\n              <b-form-input id=\"apellidos\" v-model.trim=\"form.apellidos\" type=\"text\" ref=\"apellidos\"\r\n                :state=\"apellidosState\" required :disabled=\"!modeEdit\"></b-form-input>\r\n            </b-form-group>\r\n            <!-- email -->\r\n            <b-form-group :label=\"$t('messages.email') + '*'\" label-for=\"email\" class=\"col-md-6 col-lg-4\">\r\n              <b-form-input v-model.trim=\"email\" disabled></b-form-input>\r\n            </b-form-group>\r\n            <!-- telefono -->\r\n            <b-form-group :label=\"$t('messages.phone') + '*'\" label-for=\"telefono\" class=\"col-md-6 col-lg-4\">\r\n              <b-form-input placeholder=\"+(XX)XXX-XXXXXXX\" id=\"telefono\" v-model.trim=\"form.telefono\" type=\"text\"\r\n                ref=\"telefono\" :disabled=\"!modeEdit\"></b-form-input>\r\n            </b-form-group>\r\n            <!-- nacimiento\t -->\r\n            <b-form-group :label=\"$t('messages.birthdate') + '*'\" label-for=\"nacimiento\" class=\"col-md-6 col-lg-4\">\r\n              <b-form-input id=\"nacimiento\" v-model.trim=\"form.nacimiento\" type=\"date\" ref=\"nacimiento\"\r\n                :state=\"nacimientoState\" :max=\"maxDateBirthday\" required :disabled=\"!modeEdit\"\r\n                locale=\"en-EN\"></b-form-input>\r\n            </b-form-group>\r\n            <!-- newsletter\t -->\r\n            <b-form-group class=\"col-sm-12 mt-5\" style=\"display: flex; justify-content: left\">\r\n              <b-form-checkbox id=\"newsletter\" name=\"newsletter\" v-model=\"newsletter\" ref=\"newsletter\"\r\n                :disabled=\"!modeEdit\">{{ $t(\"messages.IWantNewsletter\") }}</b-form-checkbox>\r\n            </b-form-group>\r\n          </div>\r\n          <b-button variant=\"primary\" @click=\"modeEdit = true\" v-if=\"!modeEdit\" class=\"mb-3\">{{ $t(\"messages.edit\")\r\n          }}</b-button>\r\n          <b-button variant=\"warning\" @click=\"handleDeletePerfil\" v-if=\"!modeEdit\" class=\"mb-3 ml-2\">{{\r\n            $t(\"messages.deleteProfile\") }}</b-button>\r\n          <b-button variant=\"secondary\" class=\"mb-3\" :disabled=\"inProcess\" @click=\"desHacerModoEdit\" v-if=\"modeEdit\">{{\r\n            $t(\"messages.cancel\") }}</b-button>\r\n          <b-button variant=\"primary\" @click=\"handleSubmit\" :disabled=\"inProcess\" v-if=\"modeEdit\" class=\"ml-3 mb-3\">{{\r\n            $t(\"messages.accept\") }}</b-button>\r\n        </b-form>\r\n      </b-tab>\r\n      <!-- <b-tab title=\"Direcciones\">\r\n        <create-direccion\r\n          :direccionEnEdicion=\"direccionEnEdicion\"\r\n          @noedit=\"editDireccion(null)\"\r\n          @saved=\"direcciones.push($event)\"\r\n          @edited=\"changeDireccionEdited($event)\"\r\n        />\r\n        <b-table\r\n          striped\r\n          hover\r\n          :items=\"direcciones\"\r\n          :fields=\"fields\"\r\n          :stacked=\"windowWidth < 900\"\r\n          :sort-by.sync=\"sortBy\"\r\n          :sort-desc.sync=\"sortDesc\"\r\n        >\r\n          <template #cell(actions)=\"data\">\r\n            <b-icon\r\n              icon=\"pencil-square\"\r\n              variant=\"warning\"\r\n              @click=\"editDireccion({ ...data.item })\"\r\n              scale=\"1.5\"\r\n              style=\"margin: 0px 10px; cursor: pointer\"\r\n              v-b-tooltip.hover\r\n              title=\"Editar\"\r\n            ></b-icon>\r\n            <b-icon\r\n              icon=\"x-circle\"\r\n              variant=\"danger\"\r\n              @click=\"deleteDireccion({ ...data.item })\"\r\n              scale=\"1.5\"\r\n              style=\"margin: 0px 10px; cursor: pointer\"\r\n              v-b-tooltip.hover\r\n              title=\"Eliminar\"\r\n            ></b-icon>\r\n          </template>\r\n        </b-table>\r\n      </b-tab>\r\n      <b-tab title=\"Mis Pédidos\">\r\n        <mis-pedidos/>\r\n      </b-tab> -->\r\n      <b-tab :title=\"$t('messages.changePassword')\">\r\n        <b-form ref=\"formEditPassword\">\r\n          <div class=\"row p-3 mb-5\">\r\n            <!-- password actual -->\r\n            <b-form-group :label=\"$t('messages.actualPassword') + '*'\" label-for=\"actualPassword\"\r\n              class=\"col-md-6 col-lg-4\">\r\n              <b-form-input id=\"actualPassword\" v-model.trim=\"formPassword.actualPassword\" type=\"password\"\r\n                ref=\"actualPassword\" :state=\"actualPasswordState\" required></b-form-input>\r\n            </b-form-group>\r\n            <!-- nuevo password -->\r\n            <b-form-group :label=\"$t('messages.newPassword') + '*'\" label-for=\"nuevoPassword\" class=\"col-md-6 col-lg-4\">\r\n              <b-form-input id=\"nuevoPassword\" v-model.trim=\"formPassword.nuevoPassword\" type=\"password\"\r\n                ref=\"nuevoPassword\" :state=\"nuevoPasswordState\" required></b-form-input>\r\n            </b-form-group>\r\n            <!-- re nuevo password -->\r\n            <b-form-group :label=\"$t('messages.repeatNewPassword') + '*'\" label-for=\"reNuevoPassword\"\r\n              class=\"col-md-6 col-lg-4\">\r\n              <b-form-input id=\"reNuevoPassword\" v-model.trim=\"formPassword.reNuevoPassword\" type=\"password\"\r\n                ref=\"reNuevoPassword\" :state=\"reNuevoPasswordState\" required></b-form-input>\r\n            </b-form-group>\r\n          </div>\r\n          <b-button variant=\"primary\" @click=\"handleChangePassword\" :disabled=\"inProcess\">{{ $t(\"messages.changePassword\")\r\n          }}</b-button>\r\n        </b-form>\r\n      </b-tab>\r\n    </b-tabs>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nimport UsersService from \"@/services/users.service\";\r\nimport NewsletterService from \"@/services/newsletter.service\";\r\nimport DireccionesService from \"@/services/direcciones.service\";\r\nimport EventBus from \"@/services/eventBus.js\";\r\nimport { mapGetters, mapMutations } from \"vuex\";\r\nimport CreateDireccion from \"@/components/PublicComponents/CreateDireccion.vue\";\r\nimport MisPedidos from \"@/components/PublicComponents/MisPedidos.vue\";\r\nimport { Helpers } from \"@/mixins/Helpers\";\r\nexport default {\r\n  components: {\r\n    \"create-direccion\": CreateDireccion,\r\n    \"mis-pedidos\": MisPedidos,\r\n  },\r\n  name: \"UserProcessPublic\",\r\n  mixins: [Helpers],\r\n  data() {\r\n    return {\r\n      newsletterService: null,\r\n      direccionesService: null,\r\n      usersService: null,\r\n      form: {\r\n        id: null,\r\n        identificacion: null,\r\n        nombres: null,\r\n        apellidos: null,\r\n        telefono: null,\r\n        nacimiento: null\r\n      },\r\n      newsletter: false,\r\n      formPassword: {\r\n        id: null,\r\n        actualPassword: null,\r\n        nuevoPassword: null,\r\n        reNuevoPassword: null,\r\n      },\r\n      identificacionState: null,\r\n      nombresState: null,\r\n      apellidosState: null,\r\n      nacimientoState: null,\r\n      actualPasswordState: null,\r\n      nuevoPasswordState: null,\r\n      reNuevoPasswordState: null,\r\n      modeEdit: false,\r\n      maxDateBirthday: this.$moment().format(\"YYYY-MM-DD\"),\r\n      inProcess: false,\r\n      email: \"\",\r\n      direcciones: [],\r\n      sortBy: \"direccion\",\r\n      fields: [\r\n        { key: \"identificacion\", sortable: true },\r\n        { key: \"nombre_ciudad\", sortable: true },\r\n        { key: \"direccion\", sortable: true },\r\n        { key: \"torre_manzana\", sortable: true },\r\n        { key: \"apto_casa\", sortable: true },\r\n        { key: \"observaciones\", sortable: true },\r\n        { key: \"actions\", sortable: false },\r\n      ],\r\n      itemSeleted: null,\r\n      from: \"direccionesprofile\",\r\n      windowWidth: window.innerWidth,\r\n      sortDesc: false,\r\n      direccionEnEdicion: null,\r\n    };\r\n  },\r\n  created() {\r\n    this.usersService = new UsersService();\r\n    this.newsletterService = new NewsletterService();\r\n    this.direccionesService = new DireccionesService();\r\n  },\r\n  async mounted() {\r\n    /* this.recoveryDirecciones(); */\r\n    this.$nextTick(() => {\r\n      window.addEventListener(\"resize\", () => {\r\n        this.windowWidth = window.innerWidth;\r\n      });\r\n    });\r\n\r\n    this.form = {\r\n      id: this.getUserData.id,\r\n      identificacion: this.getUserData.identificacion,\r\n      nombres: this.allFirstLettersUpperCase(this.getUserData.nombres),\r\n      apellidos: this.allFirstLettersUpperCase(this.getUserData.apellidos),\r\n      telefono: this.getUserData.telefono ?? \"\",\r\n      nacimiento: this.getUserData.nacimiento,\r\n    };\r\n\r\n    if (this.form.telefono && this.form.telefono.length > 0 && this.form.telefono[0] != \"+\") {\r\n      this.form.telefono = \"+\" + this.form.telefono;\r\n    }\r\n\r\n    this.email = this.getUserData.email.toLowerCase();\r\n    this.newsletter = this.getUserData.newsletter;\r\n    this.formPassword.id = this.getUserData.id;\r\n    EventBus.$on(\"RESPONSE_MODAL_QUESTION\", (payLoad) => {\r\n      if (payLoad.from == this.from) {\r\n        switch (payLoad.action) {\r\n          case \"delete\":\r\n            this.ejecuteDelete();\r\n            break;\r\n          case \"delete_perfil\":\r\n            this.deletePerfil();\r\n            break;\r\n          default:\r\n            break;\r\n        }\r\n      }\r\n    });\r\n  },\r\n  beforeDestroy() {\r\n    window.removeEventListener(\"resize\", () => {\r\n      this.windowWidth = window.innerWidth;\r\n    });\r\n  },\r\n  methods: {\r\n    ...mapMutations([\"updateDataUser\", \"logout\"]),\r\n    handleDeletePerfil() {\r\n      EventBus.$emit(\"SHOW_MODAL_QUESTION\", {\r\n        titleModal: this.$t('messages.elimination'),\r\n        messageModal: this.$t(\"messages.deletePerfilQuestion\"),\r\n        action: \"delete_perfil\",\r\n        from: this.from,\r\n      });\r\n    },\r\n    deletePerfil() {\r\n      this.usersService.deletePerfil().then((result) => {\r\n        if (result.data.status == 200) {\r\n          this.logout();\r\n          this.$router.push({ name: \"home\" });\r\n        }\r\n      });\r\n    },\r\n    deleteDireccion(item) {\r\n      this.itemSeleted = { ...item };\r\n      EventBus.$emit(\"SHOW_MODAL_QUESTION\", {\r\n        titleModal: this.$t('messages.elimination'),\r\n        messageModal: \"¿Seguro desea eliminar la dirección seleccionada?\",\r\n        action: \"delete\",\r\n        from: this.from,\r\n      });\r\n    },\r\n    ejecuteDelete() {\r\n      if (!this.itemSeleted) return false;\r\n      this.direccionesService\r\n        .deleteDireccion(this.itemSeleted.id)\r\n        .then((result) => {\r\n          if (result.data.status == 200) {\r\n            this.direcciones = this.direcciones.filter((item) => {\r\n              return item.id != this.itemSeleted.id;\r\n            });\r\n            this.itemSeleted = null;\r\n            this.direccionEnEdicion = null;\r\n            EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n              title: \"\",\r\n              variant: \"success\",\r\n              message: \"Dirección eliminada\",\r\n            });\r\n          }\r\n        })\r\n        .catch(() => {\r\n          EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n            title: \"Error\",\r\n            variant: \"danger\",\r\n            message: \"Error al eliminar registro\",\r\n          });\r\n        });\r\n    },\r\n    recoveryDirecciones() {\r\n      this.direccionesService\r\n        .getDireccionesForIdUser()\r\n        .then((result) => {\r\n          this.direcciones = [];\r\n          if (result.data.status == 200) {\r\n            this.direcciones = [...result.data.data];\r\n          }\r\n        })\r\n        .catch((err) => {\r\n          console.error(err);\r\n        });\r\n    },\r\n    handleChangePassword() {\r\n      if (!this.validationPassword()) {\r\n        EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n          title: \"Error\",\r\n          variant: \"warning\",\r\n          message: this.$t(\"messages.completeTheFields\"),\r\n        });\r\n        return false;\r\n      }\r\n      this.editPassword();\r\n    },\r\n    editPassword() {\r\n      this.inProcess = true;\r\n      this.usersService\r\n        .changePassword(this.formPassword)\r\n        .then((result) => {\r\n          if (result.data.status == 200) {\r\n            this.formPassword.actualPassword = null;\r\n            this.formPassword.nuevoPassword = null;\r\n            this.formPassword.reNuevoPassword = null;\r\n            EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n              title: \"\",\r\n              variant: \"success\",\r\n              message: this.$t(\"messages.passwordChanged\"),\r\n            });\r\n          } else {\r\n            EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n              title: \"Error\",\r\n              variant: \"danger\",\r\n              message: this.translateErrors(result.data.errores).join(\" - \"),\r\n            });\r\n          }\r\n          this.inProcess = false;\r\n        })\r\n        .catch(() => {\r\n          EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n            title: \"Error\",\r\n            variant: \"danger\",\r\n            message: this.$t(\"messages.saveError\"),\r\n          });\r\n          this.inProcess = false;\r\n        });\r\n    },\r\n    validationPassword() {\r\n      /* Password */\r\n      const validActualPassword = this.$refs.actualPassword.checkValidity();\r\n      this.actualPasswordState = validActualPassword;\r\n      /* Nuevo Password */\r\n      const validNuevoPassword = this.$refs.nuevoPassword.checkValidity();\r\n      this.nuevoPasswordState = validNuevoPassword;\r\n      /*  Re Nuevo Password */\r\n      const validReNuevoPassword = this.$refs.reNuevoPassword.checkValidity();\r\n      this.reNuevoPasswordState = validReNuevoPassword;\r\n      if (\r\n        this.formPassword.reNuevoPassword != this.formPassword.nuevoPassword\r\n      ) {\r\n        this.reNuevoPasswordState = false;\r\n        this.nuevoPasswordState = false;\r\n        EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n          title: \"Error\",\r\n          variant: \"danger\",\r\n          message: this.$t(\"messages.passwordsNotMatch\"),\r\n        });\r\n        return false;\r\n      }\r\n      return validNuevoPassword && validReNuevoPassword && validActualPassword;\r\n    },\r\n    handleSubmit() {\r\n      if (!this.validation()) {\r\n        EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n          title: \"Error\",\r\n          variant: \"warning\",\r\n          message: this.$t(\"messages.completeTheFields\"),\r\n        });\r\n        return false;\r\n      }\r\n      this.editRegister();\r\n    },\r\n    editRegister() {\r\n      this.inProcess = true;\r\n\r\n      if (this.newsletter) {\r\n        try {\r\n          this.newsletterService.suscribe({\r\n            email: this.email,\r\n            idioma: this.$i18n.locale === \"es\" ? \"spanish\" : \"english\",\r\n          });\r\n        } catch (error) {\r\n          console.log(error);\r\n        }\r\n      } else {\r\n        try {\r\n          this.newsletterService.unsuscribeByEmail(this.email);\r\n        } catch (error) {\r\n          console.log(error);\r\n        }\r\n      }\r\n\r\n      if (this.form.telefono && this.form.telefono.toString().length > 0 && this.form.telefono.toString()[0] != \"+\") {\r\n        this.form.telefono = \"+\" + this.form.telefono.toString();\r\n      }\r\n\r\n      this.usersService\r\n        .editUserPublic(this.form)\r\n        .then((result) => {\r\n          if (result.data.status == 200) {\r\n            this.modeEdit = false;\r\n\r\n            if (result.data.data.telefono && result.data.data.telefono.toString().length > 0 && result.data.data.telefono.toString()[0] != \"+\") {\r\n              result.data.data.telefono = \"+\" + result.data.data.telefono.toString();\r\n            }\r\n\r\n            this.form.identificacion = result.data.data.identificacion;\r\n            this.form.nombres = this.allFirstLettersUpperCase(\r\n              result.data.data.nombres\r\n            );\r\n            this.form.apellidos = this.allFirstLettersUpperCase(\r\n              result.data.data.apellidos\r\n            );\r\n            this.form.telefono = result.data.data.telefono;\r\n\r\n            this.form.nacimiento = result.data.data.nacimiento;\r\n\r\n            this.updateDataUser({ ...result.data.data, newsletter: this.newsletter });\r\n            EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n              title: \"\",\r\n              variant: \"success\",\r\n              message: this.$t(\"messages.editSuccess\"),\r\n            });\r\n          } else {\r\n            EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n              title: \"Error\",\r\n              variant: \"danger\",\r\n              message: this.translateErrors(result.data.errores).join(\" - \"),\r\n            });\r\n          }\r\n          this.inProcess = false;\r\n        })\r\n        .catch(() => {\r\n          EventBus.$emit(\"MOSTRAR_TOAST\", {\r\n            title: \"Error\",\r\n            variant: \"danger\",\r\n            message: this.$t(\"messages.saveError\"),\r\n          });\r\n          this.inProcess = false;\r\n        });\r\n    },\r\n    validation() {\r\n      /* identificacion*/\r\n      /* const validIdentificacion = this.$refs.identificacion.checkValidity();\r\n      this.identificacionState = validIdentificacion; */\r\n      /* nombres*/\r\n      const validNombres = this.$refs.nombres.checkValidity();\r\n      this.nombresState = validNombres;\r\n      /* apellidos*/\r\n      const validApellidos = this.$refs.apellidos.checkValidity();\r\n      this.apellidosState = validApellidos;\r\n      /* telefono*/\r\n      /* const validTelefono = this.$refs.telefono.checkValidity();\r\n      this.telefonoState = validTelefono; */\r\n      /* nacimiento*/\r\n      const validNacimiento = this.$refs.nacimiento.checkValidity();\r\n      this.nacimientoState = validNacimiento;\r\n      return validNombres && validApellidos && validNacimiento;\r\n    },\r\n    desHacerModoEdit() {\r\n      this.modeEdit = false;\r\n      this.form = {\r\n        id: this.getUserData.id,\r\n        identificacion: this.getUserData.identificacion,\r\n        nombres: this.allFirstLettersUpperCase(this.getUserData.nombres),\r\n        apellidos: this.allFirstLettersUpperCase(this.getUserData.apellidos),\r\n        telefono: this.getUserData.telefono,\r\n        nacimiento: this.getUserData.nacimiento,\r\n      };\r\n      this.newsletter = this.getUserData.newsletter;\r\n    },\r\n    editDireccion(item) {\r\n      if (item) {\r\n        this.direccionEnEdicion = { ...item };\r\n      } else {\r\n        this.direccionEnEdicion = null;\r\n      }\r\n    },\r\n    changeDireccionEdited(event) {\r\n      this.direcciones = this.direcciones.filter((item) => {\r\n        return item.id != event.id;\r\n      });\r\n      this.direcciones.push({ ...event });\r\n      this.direccionEnEdicion = null;\r\n    },\r\n  },\r\n  computed: {\r\n    ...mapGetters([\"getUserData\"]),\r\n  },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.container-cental {\r\n  width: 100%;\r\n  min-height: 700px;\r\n  padding: 0px 300px;\r\n}\r\n\r\n@media (max-width: 1400px) {\r\n  .container-cental {\r\n    padding: 0px 10px;\r\n  }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Profile.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Profile.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Profile.vue?vue&type=template&id=40e99f00&scoped=true&\"\nimport script from \"./Profile.vue?vue&type=script&lang=js&\"\nexport * from \"./Profile.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Profile.vue?vue&type=style&index=0&id=40e99f00&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"40e99f00\",\n  null\n  \n)\n\nexport default component.exports","import axios from \"axios\";\r\n\r\nexport default class UsersService {\r\n  getAll(){\r\n    return axios.get(process.env.VUE_APP_API_PUBLIC + \"usuarios/all\")\r\n  }\r\n  getById(id){\r\n    return axios.get(process.env.VUE_APP_API_PUBLIC + \"usuarios/admin/\"+id)\r\n  }\r\n  createUserAdmin(data){\r\n    return axios.post(process.env.VUE_APP_API_PUBLIC + \"usuarios/create-admin\",data)\r\n  }\r\n  createUserPublic(data){\r\n    return axios.post(process.env.VUE_APP_API_PUBLIC + \"usuarios/create-public\",data)\r\n  }\r\n  deleteUser(id){\r\n    const data={\r\n      id\r\n    }\r\n    return axios.delete(process.env.VUE_APP_API_PUBLIC + \"usuarios\",{data})\r\n  }\r\n  editUserAdmin(data){\r\n    return axios.put(process.env.VUE_APP_API_PUBLIC + \"usuarios/update-admin\",data)\r\n  }\r\n  editUserPublic(data){\r\n    return axios.put(process.env.VUE_APP_API_PUBLIC + \"usuarios/update-public\",data)\r\n  }\r\n  changePassword(data){\r\n    return axios.put(process.env.VUE_APP_API_PUBLIC + \"usuarios/change-password\",data)\r\n  }\r\n\r\n  contactanos(data){\r\n    return axios.post(process.env.VUE_APP_API_PUBLIC + \"contactanos\",data)\r\n  }\r\n\r\n  deletePerfil(){\r\n    return axios.delete(process.env.VUE_APP_API_PUBLIC + \"usuarios/perfil\")\r\n  }\r\n}\r\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Profile.vue?vue&type=style&index=0&id=40e99f00&lang=scss&scoped=true&\""],"sourceRoot":""}