{"version":3,"sources":["Register/forgot.js"],"names":["recovery","$","prop","ajax","url","data","Id","val","datatype","type","success","resposne","Swal","fire","icon","title","text","confirmButtonColor","error","ex","console","validate","rules","required","minlength","maxlength","submitHandler"],"mappings":"AAcA,SAASA,WACLC,EAAE,uBAAuBC,KAAK,YAAW,GACzCD,EAAEE,KAAK,CACHC,IAAK,2BACLC,KAAM,CAACC,GAAKL,EAAE,OAAOM,OACrBC,SAAS,OACTC,KAAK,OACLC,QAAS,SAASC,GACdC,KAAKC,KAAK,CACNC,KAAM,UACNC,MAAO,yBACPC,KAAM,0EACNC,mBAAoB,aAG5BC,MAAO,SAASC,GACZC,QAAQF,MAAMC,GACdP,KAAKC,KAAK,CACNC,KAAM,QACNC,MAAO,QACPC,KAAM,mCACNC,mBAAoB,eAnCpChB,GAAE,WACEA,EAAE,gBAAgBoB,SAAS,CACvBC,MAAO,CACHhB,GAAG,CACCiB,UAAU,EACVC,UAAY,EACZC,UAAW,KAGnBC,cAAe1B","file":"forgot.js","sourcesContent":["$(function(){\n $(\"#form-forgot\").validate({ \n rules: {\n Id:{\n required: true,\n minlength : 9,\n maxlength: 30\n } \n },\n submitHandler: recovery\n });\n});\n\n\nfunction recovery(){\n $('#btn-reset-password').prop('disabled',true);\n $.ajax({\n url: '/Register/SendResetToken',\n data: {Id : $('#Id').val()},\n datatype:'JSON',\n type:'POST',\n success: function(resposne){\n Swal.fire({\n icon: 'success',\n title: 'Restablecer Contraseña',\n text: 'Por favor verifica tu correo electrónico para restablecer la contraseña',\n confirmButtonColor: \"#001f3f\",\n });\n },\n error: function(ex){\n console.error(ex);\n Swal.fire({\n icon: 'error',\n title: 'Error',\n text: 'Error al procesar su transacción',\n confirmButtonColor: \"#001f3f\",\n });\n }\n })\n}"]}