{"version":3,"sources":["webpack:///./src/views/auth/PasswordChange.vue?811e","webpack:///./src/views/auth/PasswordChange.vue","webpack:///./src/views/auth/PasswordChange.vue?a997"],"names":["_hoisted_1","class","_hoisted_2","style","_hoisted_3","_hoisted_4","_hoisted_5","novalidate","id","_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","render","_ctx","_cache","$props","$setup","$data","$options","_component_router_link","to","default","_","type","placeholder","name","$event","autocomplete","newPassword","confirmPassword","onClick","onSubmitForgotPassword","args","setup","store","router","route","submitButton","forgotPassword","shape","email","required","label","values","value","setAttribute","dispatch","FORGOT_PASSWORD_SAVE","query","password","token","params","then","fire","text","icon","buttonsStyling","confirmButtonText","customClass","confirmButton","push","removeAttribute","catch","getters","getErrors","__exports__"],"mappings":"yIAEMA,EAAa,CAAEC,MAAO,gCACtBC,EAAa,CACjBD,MAAO,mIACPE,MAAO,CAAC,mBAAmB,oDAEvBC,EAAa,CAAEH,MAAO,kEACtBI,EAAa,CAAEJ,MAAO,6DACtBK,EAAa,CACjBL,MAAO,aACPM,WAAY,aACZC,GAAI,wBAEAC,EAAa,CAAER,MAAO,qBACtBS,EAA0B,gCAAoB,KAAM,CAAET,MAAO,kBAAoB,sBAAuB,GACxGU,EAAa,CAAEV,MAAO,8BACtBW,EAA0B,6BAAiB,uCAC3CC,EAA2B,6BAAiB,gBAC5CC,EAAc,CAClBb,MAAO,eACP,yBAA0B,QAEtBc,EAAc,CAAEd,MAAO,QACvBe,EAA2B,gCAAoB,QAAS,CAAEf,MAAO,uCAAyC,YAAa,GACvHgB,EAAc,CAAEhB,MAAO,0BACvBiB,EAA2B,gCAAoB,OAAQ,CAC3DjB,MAAO,4EACP,iCAAkC,cACjC,CACY,gCAAoB,IAAK,CAAEA,MAAO,yBAClC,g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AAgB,EAChBC,kBAAmB,aACnBC,YAAa,CACXC,cAAe,kCAID,QAAlB,EAAAtB,EAAaO,aAAK,SAAEiB,gBAAgB,yBAI5C,MAAO,CACL9B,uBAAsB,EACtBH,YAAW,EACXC,gBAAe,EACfS,eAAc,EACdD,aAAY,M,qBCvElB,MAAM4B,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASrD,KAErD","file":"js/chunk-2d0bd54f.873052b2.js","sourcesContent":["import { createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, vModelText as _vModelText, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"d-flex flex-column flex-root\" }\nconst _hoisted_2 = {\n class: \"d-flex flex-column flex-column-fluid bgi-position-y-bottom position-x-center bgi-no-repeat bgi-size-contain bgi-attachment-fixed\",\n style: {\"background-image\":\"url(assets/media/illustrations/sketchy-1/14.png\"}\n}\nconst _hoisted_3 = { class: \"d-flex flex-center flex-column flex-column-fluid p-10 pb-lg-20\" }\nconst _hoisted_4 = { class: \"w-lg-550px bg-body rounded shadow-sm p-10 p-lg-15 mx-auto\" }\nconst _hoisted_5 = {\n class: \"form w-100\",\n novalidate: \"novalidate\",\n id: \"kt_new_password_form\"\n}\nconst _hoisted_6 = { class: \"text-center mb-10\" }\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"h1\", { class: \"text-dark mb-3\" }, \"Setup New Password\", -1)\nconst _hoisted_8 = { class: \"text-gray-400 fw-bold fs-4\" }\nconst _hoisted_9 = /*#__PURE__*/_createTextVNode(\"Already have reset your password ? \")\nconst _hoisted_10 = /*#__PURE__*/_createTextVNode(\"Sign in here\")\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\" }, \"Password\", -1)\nconst _hoisted_14 = { class: \"position-relative mb-3\" }\nconst _hoisted_15 = /*#__PURE__*/_createElementVNode(\"span\", {\n class: \"btn btn-sm btn-icon position-absolute translate-middle top-50 end-0 me-n2\",\n \"data-kt-password-meter-control\": \"visibility\"\n}, [\n /*#__PURE__*/_createElementVNode(\"i\", { class: \"bi bi-eye-slash fs-2\" }),\n /*#__PURE__*/_createElementVNode(\"i\", { class: \"bi bi-eye fs-2 d-none\" })\n], -1)\nconst _hoisted_16 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"text-muted\" }, \"Use 8 or more characters with a mix of letters, numbers & symbols.\", -1)\nconst _hoisted_17 = { class: \"fv-row mb-10\" }\nconst _hoisted_18 = /*#__PURE__*/_createElementVNode(\"label\", { class: \"form-label fw-bolder text-dark fs-6\" }, \"Confirm Password\", -1)\nconst _hoisted_19 = { class: \"text-center\" }\nconst _hoisted_20 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"indicator-label\" }, \"Submit\", -1)\nconst _hoisted_21 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"indicator-progress\" }, [\n /*#__PURE__*/_createTextVNode(\"Please wait... \"),\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"spinner-border spinner-border-sm align-middle ms-2\" })\n], -1)\nconst _hoisted_22 = [\n _hoisted_20,\n _hoisted_21\n]\nconst _hoisted_23 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"d-flex flex-center flex-column-auto p-10\" }, null, -1)\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_router_link = _resolveComponent(\"router-link\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"form\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createElementVNode(\"div\", _hoisted_8, [\n _hoisted_9,\n _createVNode(_component_router_link, {\n to: \"/sign-in\",\n class: \"link-primary fw-bolder\"\n }, {\n default: _withCtx(() => [\n _hoisted_10\n ]),\n _: 1\n })\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", _hoisted_12, [\n _hoisted_13,\n _createElementVNode(\"div\", _hoisted_14, [\n _withDirectives(_createElementVNode(\"input\", {\n class: \"form-control form-control-lg form-control-solid\",\n type: \"password\",\n placeholder: \"\",\n name: \"password\",\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.newPassword) = $event)),\n autocomplete: \"off\"\n }, null, 512), [\n [_vModelText, _ctx.newPassword]\n ]),\n _hoisted_15\n ])\n ]),\n _hoisted_16\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _hoisted_18,\n _withDirectives(_createElementVNode(\"input\", {\n class: \"form-control form-control-lg form-control-solid\",\n type: \"password\",\n placeholder: \"\",\n name: \"confirm-password\",\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.confirmPassword) = $event)),\n autocomplete: \"off\"\n }, null, 512), [\n [_vModelText, _ctx.confirmPassword]\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_19, [\n _createElementVNode(\"button\", {\n type: \"button\",\n id: \"kt_new_password_submit\",\n class: \"btn btn-lg btn-primary fw-bolder\",\n name: \"submitButton\",\n onClick: _cache[2] || (_cache[2] = \n//@ts-ignore\n(...args) => (_ctx.onSubmitForgotPassword && _ctx.onSubmitForgotPassword(...args)))\n }, _hoisted_22)\n ])\n ])\n ])\n ]),\n _hoisted_23\n ])\n ]))\n}","\nimport { defineComponent, ref } from \"vue\";\nimport { useStore } from \"vuex\";\nimport {useRoute, useRouter } from \"vue-router\";\nimport * as Yup from \"yup\";\nimport { Actions } from \"@/store/enums/StoreEnums\";\nimport Swal from \"sweetalert2/dist/sweetalert2.min.js\";\n\nexport default defineComponent({\n name: \"password-change\",\n setup() {\n const store = useStore();\n const router = useRouter();\n const route = useRoute();\n\n const submitButton = ref(null);\n const newPassword = ref(\"\");\n const confirmPassword = ref(\"\");\n\n //Create form validation object\n const forgotPassword = Yup.object().shape({\n email: Yup.string()\n .email()\n .required()\n .label(\"Email\")\n });\n\n //Form submit function\n const onSubmitForgotPassword = values => {\n // Activate loading indicator\n submitButton.value?.setAttribute(\"data-kt-indicator\", \"on\");\n\n store\n .dispatch(Actions.FORGOT_PASSWORD_SAVE, {\n email: route.query.email,\n password: newPassword.value,\n 'password_confirmation': confirmPassword.value,\n token: route.params.token\n })\n .then(() => {\n Swal.fire({\n text: \"Password changed successfully! You can now log in.\",\n icon: \"success\",\n buttonsStyling: false,\n confirmButtonText: \"Ok, got it!\",\n customClass: {\n confirmButton: \"btn fw-bold btn-light-primary\"\n }\n }).then(function() {\n // Go to page after successfully login\n router.push({ name: \"dashboard\" });\n });\n\n submitButton.value?.removeAttribute(\"data-kt-indicator\");\n })\n .catch(() => {\n // Alert then login failed\n Swal.fire({\n text: store.getters.getErrors[0],\n icon: \"error\",\n buttonsStyling: false,\n confirmButtonText: \"Try again!\",\n customClass: {\n confirmButton: \"btn fw-bold btn-light-danger\"\n }\n });\n\n submitButton.value?.removeAttribute(\"data-kt-indicator\");\n });\n };\n\n return {\n onSubmitForgotPassword,\n newPassword,\n confirmPassword,\n forgotPassword,\n submitButton\n };\n }\n});\n","import { render } from \"./PasswordChange.vue?vue&type=template&id=6e66c622&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 \"/codebuild/output/src1803551405/src/wci-front/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"sourceRoot":""}