{"version":3,"sources":["webpack:///./src/views/crafted/authentication/basic-flow/PasswordChange.vue?5da0","webpack:///./src/views/crafted/authentication/basic-flow/PasswordChange.vue","webpack:///./src/views/crafted/authentication/basic-flow/PasswordChange.vue?27b1"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","id","ref","type","_hoisted_30","_hoisted_31","_hoisted_32","render","_ctx","_cache","$props","$setup","$data","$options","_component_Field","_component_ErrorMessage","_component_Form","novalidate","onSubmit","onSubmitRegister","registration","default","currentUser","nombre","placeholder","name","autocomplete","_","components","Field","Form","ErrorMessage","setup","store","router","route","submitButton","shape","nuevaContrasena","required","min","max","matches","label","confirmacionNuevaContrasena","oneOf","token","params","getters","currentUserPass","bootstrap","dispatch","VERIFY_TOKEN_PASSWORD","then","catch","error","Object","keys","getAuthErrors","fire","text","icon","buttonsStyling","confirmButtonText","customClass","confirmButton","push","values","LOGOUT","value","disabled","setAttribute","setTimeout","UPDATE_PASSWORD","removeAttribute","__exports__"],"mappings":"uIAEMA,EAAa,CAAEC,MAAO,sEACtBC,EAA0B,+BAAmB,mfAAsgB,GACnjBC,EAAa,CAAEF,MAAO,8DACtBG,EAAa,CAAEH,MAAO,mDACtBI,EAA0B,gCAAoB,MAAO,CAAEJ,MAAO,qBAAuB,CAC5E,gCAAoB,KAAM,CAAEA,MAAO,kBAAoB,wBAClE,GACEK,EAA0B,gCAAoB,MAAO,CAAEL,MAAO,mCAAqC,CAC1F,gCAAoB,MAAO,CAAEA,MAAO,8CACpC,gCAAoB,OAAQ,CAAEA,MAAO,oCACrC,gCAAoB,MAAO,CAAE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CACNC,KAAM,UACNC,gBAAgB,EAChBC,kBAAmB,aACnBC,YAAa,CACXC,cAAe,mCAEhBZ,MAAK,WACNnB,EAAOgC,KAAK,CAAEzC,KAAM,kBAGvB6B,OAAM,WACE,IAAAC,EAASC,OAAOC,KAAKxB,EAAMe,QAAQU,eAAc,GACxD,IAAKC,KAAK,CACRC,KAAM3B,EAAMe,QAAQU,cAAcH,GAClCM,KAAM,QACNC,gBAAgB,EAChBC,kBAAmB,sBACnBC,YAAa,CACXC,cAAe,qCAKL,QAAlB,EAAA7B,EAAaiC,aAAK,SAAEK,gBAAgB,qBAEpCtC,EAAaiC,MAAOC,UAAW,IAC9B,IAGL,MAAO,CACLlD,aAAY,EACZD,iBAAgB,EAChBiB,aAAY,EACZd,YAAW,M,qBCvHjB,MAAMqD,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASpE,KAErD","file":"js/chunk-2d21f2e9.60f085f0.js","sourcesContent":["import { createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createStaticVNode as _createStaticVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"d-flex flex-column align-items-start flex-xl-row flex-column-fluid\" }\nconst _hoisted_2 = /*#__PURE__*/_createStaticVNode(\"
\\\"Logo\\\"

Bienvenido!

Debes cambiar tu contraseña
Recuerda no utilizar credenciales
que puedan poner en riesgo tu información.
\", 1)\nconst _hoisted_3 = { class: \"flex-row-fluid d-flex flex-center justfiy-content-xl-first\" }\nconst _hoisted_4 = { class: \"bg-white rounded shadow-sm p-10 p-lg-15 mx-auto\" }\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"mb-10 text-center\" }, [\n /*#__PURE__*/_createElementVNode(\"h1\", { class: \"text-dark mb-3\" }, \"Cambiar Contraseña\")\n], -1)\nconst _hoisted_6 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"d-flex align-items-center mb-10\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"border-bottom border-gray-300 mw-50 w-100\" }),\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"fw-bold text-gray-400 fs-7 mx-2\" }),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"border-bottom border-gray-300 mw-50 w-100\" })\n], -1)\nconst _hoisted_7 = { class: \"fv-row mb-7\" }\nconst _hoisted_8 = /*#__PURE__*/_createElementVNode(\"label\", { class: \"form-label fw-bolder text-dark fs-6\" }, \"PROVEEDOR\", -1)\nconst _hoisted_9 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\nconst _hoisted_10 = { class: \"form-label text-dark fs-6\" }\nconst _hoisted_11 = {\n class: \"mb-10 fv-row\",\n \"data-kt-password-meter\": \"true\"\n}\nconst _hoisted_12 = { class: \"mb-1\" }\nconst _hoisted_13 = /*#__PURE__*/_createElementVNode(\"label\", { class: \"form-label fw-bolder text-dark fs-6\" }, \" Nueva Contraseña \", -1)\nconst _hoisted_14 = { class: \"position-relative mb-3\" }\nconst _hoisted_15 = { class: \"fv-plugins-message-container\" }\nconst _hoisted_16 = { class: \"fv-help-block\" }\nconst _hoisted_17 = /*#__PURE__*/_createElementVNode(\"div\", {\n class: \"d-flex align-items-center mb-3\",\n \"data-kt-password-meter-control\": \"highlight\"\n}, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex-grow-1 bg-secondary bg-active-success rounded h-5px me-2\" }),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex-grow-1 bg-secondary bg-active-success rounded h-5px me-2\" }),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex-grow-1 bg-secondary bg-active-success rounded h-5px me-2\" }),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex-grow-1 bg-secondary bg-active-success rounded h-5px\" })\n], -1)\nconst _hoisted_18 = { class: \"text-muted\" }\nconst _hoisted_19 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\nconst _hoisted_20 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\nconst _hoisted_21 = /*#__PURE__*/_createElementVNode(\"li\", null, \"Al menos 1 letra minúscula (a-z)\", -1)\nconst _hoisted_22 = /*#__PURE__*/_createElementVNode(\"li\", null, \"Al menos 1 letra mayúscula (A-Z)\", -1)\nconst _hoisted_23 = /*#__PURE__*/_createElementVNode(\"li\", null, \"Al menos 1 número (0-9)\", -1)\nconst _hoisted_24 = { class: \"fv-row mb-5\" }\nconst _hoisted_25 = /*#__PURE__*/_createElementVNode(\"label\", { class: \"form-label fw-bolder text-dark fs-6\" }, \"Confirme su Contraseña\", -1)\nconst _hoisted_26 = { class: \"fv-plugins-message-container\" }\nconst _hoisted_27 = { class: \"fv-help-block\" }\nconst _hoisted_28 = { class: \"text-center\" }\nconst _hoisted_29 = {\n id: \"kt_sign_up_submit\",\n ref: \"submitButton\",\n type: \"submit\",\n class: \"btn btn-lg btn-primary\"\n}\nconst _hoisted_30 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"indicator-label\" }, \" Continuar \", -1)\nconst _hoisted_31 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"indicator-progress\" }, [\n /*#__PURE__*/_createTextVNode(\" Espere... \"),\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"spinner-border spinner-border-sm align-middle ms-2\" })\n], -1)\nconst _hoisted_32 = [\n _hoisted_30,\n _hoisted_31\n]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Field = _resolveComponent(\"Field\")!\n const _component_ErrorMessage = _resolveComponent(\"ErrorMessage\")!\n const _component_Form = _resolveComponent(\"Form\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(_component_Form, {\n class: \"form w-100 fv-plugins-bootstrap5 fv-plugins-framework\",\n novalidate: \"novalidate\",\n onSubmit: _ctx.onSubmitRegister,\n id: \"kt_login_signup_form\",\n \"validation-schema\": _ctx.registration\n }, {\n default: _withCtx(() => [\n _hoisted_5,\n _hoisted_6,\n _createElementVNode(\"div\", _hoisted_7, [\n _hoisted_8,\n _hoisted_9,\n _createElementVNode(\"label\", _hoisted_10, _toDisplayString(_ctx.currentUser.nombre), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", _hoisted_12, [\n _hoisted_13,\n _createElementVNode(\"div\", _hoisted_14, [\n _createVNode(_component_Field, {\n class: \"form-control form-control-lg form-control-solid\",\n type: \"password\",\n placeholder: \"Contraseña\",\n name: \"nuevaContrasena\",\n autocomplete: \"off\"\n }),\n _createElementVNode(\"div\", _hoisted_15, [\n _createElementVNode(\"div\", _hoisted_16, [\n _createVNode(_component_ErrorMessage, { name: \"nuevaContrasena\" })\n ])\n ])\n ]),\n _hoisted_17\n ]),\n _createElementVNode(\"div\", _hoisted_18, [\n _createTextVNode(\" Recomendamos el uso de 8 o más \"),\n _hoisted_19,\n _createTextVNode(\" caracteres incorporando, números y símbolos.\"),\n _hoisted_20,\n _createTextVNode(\" La contraseña debe contener: \"),\n _createElementVNode(\"ul\", null, [\n _createElementVNode(\"li\", null, \"Al menos 1 carácter especial: \" + _toDisplayString(\"!#%&'()*+,-./:;<=>?@[\\]^_`{|}~\"), 1),\n _hoisted_21,\n _hoisted_22,\n _hoisted_23\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_24, [\n _hoisted_25,\n _createVNode(_component_Field, {\n class: \"form-control form-control-lg form-control-solid\",\n type: \"password\",\n placeholder: \"Confirmar Contraseña\",\n name: \"confirmacionNuevaContrasena\",\n autocomplete: \"off\"\n }),\n _createElementVNode(\"div\", _hoisted_26, [\n _createElementVNode(\"div\", _hoisted_27, [\n _createVNode(_component_ErrorMessage, { name: \"confirmacionNuevaContrasena\" })\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_28, [\n _createElementVNode(\"button\", _hoisted_29, _hoisted_32, 512)\n ])\n ]),\n _: 1\n }, 8, [\"onSubmit\", \"validation-schema\"])\n ])\n ])\n ]))\n}","\nimport { defineComponent, ref, onMounted, nextTick, computed } from \"vue\";\nimport { ErrorMessage, Field, Form } from \"vee-validate\";\nimport * as Yup from \"yup\";\nimport { useStore } from \"vuex\";\nimport { useRouter } from \"vue-router\";\nimport { useRoute } from \"vue-router\";\nimport { Actions } from \"@/store/enums/StoreEnums\";\nimport { PasswordMeterComponent } from \"@/assets/ts/components\";\nimport Swal from \"sweetalert2/dist/sweetalert2.min.js\";\n\nexport default defineComponent({\n name: \"sign-up\",\n components: {\n Field,\n Form,\n ErrorMessage,\n },\n setup() {\n const store = useStore();\n const router = useRouter();\n const route = useRoute();\n const submitButton = ref(null);\n\n const registration = Yup.object().shape({\n nuevaContrasena: Yup.string()\n .required(\"Es requerido\")\n .min(8, \"Por favor ingresa al menos 8 caracteres\")\n .max(100, \"La contraseña no puede tener más de 100 caracteres\")\n .matches(\n /[!#%&'()*+,-./:;<=>?@[\\\\\\]^_`{|}~]/,\n \"Debe contener al menos un carácter especial\"\n )\n .matches(/[a-z]/, \"Debe contener al menos una letra minúscula\")\n .matches(/[A-Z]/, \"Debe contener al menos una letra mayúscula\")\n .matches(/\\d/, \"Debe contener al menos un número\")\n .label(\"Contraseña\"),\n confirmacionNuevaContrasena: Yup.string()\n .required(\"Es requerido\")\n .oneOf(\n [Yup.ref(\"nuevaContrasena\"), null],\n \"Confirmación debe coincidir\"\n )\n .label(\"Confirmación de Contraseña\"),\n });\n const token = route.params.token;\n const currentUser = computed(() => {\n return store.getters.currentUserPass;\n });\n onMounted(() => {\n nextTick(() => {\n PasswordMeterComponent.bootstrap();\n });\n store\n .dispatch(Actions.VERIFY_TOKEN_PASSWORD, token)\n .then()\n .catch(() => {\n const [error] = Object.keys(store.getters.getAuthErrors);\n Swal.fire({\n text: store.getters.getAuthErrors[error],\n icon: \"error\",\n buttonsStyling: false,\n confirmButtonText: \"Intentar nuevamente!\",\n customClass: {\n confirmButton: \"btn fw-bold btn-light-danger\",\n },\n }).then(function () {\n router.push({ name: \"password-reset\" });\n });\n });\n });\n\n const onSubmitRegister = (values) => {\n // Clear existing errors\n store.dispatch(Actions.LOGOUT);\n\n // eslint-disable-next-line\n submitButton.value!.disabled = true;\n\n // Activate indicator\n submitButton.value?.setAttribute(\"data-kt-indicator\", \"on\");\n\n values.token = token;\n // Dummy delay\n setTimeout(() => {\n // Send login request\n store\n .dispatch(Actions.UPDATE_PASSWORD, values)\n .then(() => {\n Swal.fire({\n text: \"Su contraseña ha sido cambiada exitosamente!\",\n icon: \"success\",\n buttonsStyling: false,\n confirmButtonText: \"Ok, vamos!\",\n customClass: {\n confirmButton: \"btn fw-bold btn-light-primary\",\n },\n }).then(function () {\n router.push({ name: \"sign-in\" });\n });\n })\n .catch(() => {\n const [error] = Object.keys(store.getters.getAuthErrors);\n Swal.fire({\n text: store.getters.getAuthErrors[error],\n icon: \"error\",\n buttonsStyling: false,\n confirmButtonText: \"Intentar nuevamente\",\n customClass: {\n confirmButton: \"btn fw-bold btn-light-danger\",\n },\n });\n });\n\n submitButton.value?.removeAttribute(\"data-kt-indicator\");\n // eslint-disable-next-line\n submitButton.value!.disabled = false;\n }, 1);\n };\n\n return {\n registration,\n onSubmitRegister,\n submitButton,\n currentUser,\n };\n },\n});\n","import { render } from \"./PasswordChange.vue?vue&type=template&id=91a5cdf4&ts=true\"\nimport script from \"./PasswordChange.vue?vue&type=script&lang=ts\"\nexport * from \"./PasswordChange.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"D:\\\\Proyectos\\\\Codebase\\\\Github\\\\Melon\\\\melon-web-proveedores\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"sourceRoot":""}