Files
jandl-taskmanager-app/app/dist/js/9396.c6b05543.js
T
2022-12-01 21:03:55 +01:00

2 lines
3.6 KiB
JavaScript

"use strict";(self["webpackChunkjandl"]=self["webpackChunkjandl"]||[]).push([[9396],{9396:function(o,r,e){e.r(r),e.d(r,{default:function(){return y}});var s=e(3396),a=e(3369);const l={class:"auth-card"},t=(0,s._)("h1",null,"Resetovať heslo",-1),n=(0,s._)("p",{class:"mb-10"},"Overovací kód sme Vám odoslali na email. Môžete ho sem vložiť, alebo pokračovať pomocou odkazu v emaile.",-1);function i(o,r,e,i,m,d){const c=(0,s.up)("A-reset-password-form");return(0,s.wg)(),(0,s.j4)(a.K,null,{default:(0,s.w5)((()=>[(0,s._)("div",l,[t,n,(0,s.Wm)(c)])])),_:1})}var m=e(7139),d=e(870),c=e(6422),u=e(2900);const p={class:"d-flex flex-column"};function w(o,r,e,a,l,t){return(0,s.wg)(),(0,s.j4)(c.O,null,{default:(0,s.w5)((()=>[(0,s.Wm)(u.hw,{modelValue:l.form.code,"onUpdate:modelValue":r[0]||(r[0]=o=>l.form.code=o),label:"Kód",autocomplete:"one-time-code","bg-color":"white",variant:"solo",type:"number",class:(0,m.C_)(["mb-2",{error:l.v$.form.code.$errors.length}]),hint:l.v$.form.code.$errors?l.errorUtils.parseErrors(l.v$.form.code.$errors):null,counter:6},null,8,["modelValue","hint","class"]),(0,s.Wm)(u.hw,{modelValue:l.form.email,"onUpdate:modelValue":r[1]||(r[1]=o=>l.form.email=o),label:"E-mail",autocomplete:"email","bg-color":"white",variant:"solo",type:"email",class:(0,m.C_)(["mb-2",{error:l.v$.form.email.$errors.length}]),hint:l.v$.form.email.$errors?l.errorUtils.parseErrors(l.v$.form.email.$errors):null},null,8,["modelValue","hint","class"]),(0,s.Wm)(u.hw,{modelValue:l.form.password,"onUpdate:modelValue":r[2]||(r[2]=o=>l.form.password=o),label:"Heslo",autocomplete:"new-password","bg-color":"white",variant:"solo",type:l.showPassword?"text":"password",class:(0,m.C_)(["mb-2",{error:l.v$.form.password.$errors.length}]),hint:l.v$.form.password.$errors?l.errorUtils.parseErrors(l.v$.form.password.$errors):null,counter:8,"append-icon":l.showPassword?"mdi-eye":"mdi-eye-off","onClick:append":r[3]||(r[3]=o=>l.showPassword=!l.showPassword)},null,8,["modelValue","type","hint","class","append-icon"]),(0,s.Wm)(u.hw,{modelValue:l.form.password_confirmation,"onUpdate:modelValue":r[4]||(r[4]=o=>l.form.password_confirmation=o),autocomplete:"new-password","bg-color":"white",variant:"solo",label:"Potvrdenie hesla",type:l.showConfirmationPassword?"text":"password",counter:8,class:(0,m.C_)(["mb-2",{error:l.v$.form.password_confirmation.$errors.length}]),hint:l.v$.form.password_confirmation.$errors?l.errorUtils.parseErrors(l.v$.form.password_confirmation.$errors):null,"append-icon":l.showConfirmationPassword?"mdi-eye":"mdi-eye-off","onClick:append":r[5]||(r[5]=o=>l.showConfirmationPassword=!l.showConfirmationPassword)},null,8,["modelValue","type","hint","class","append-icon"]),(0,s._)("div",p,[(0,s.Wm)(d.T,{class:"button",color:"#7F39FB",onClick:r[6]||(r[6]=o=>t.submit())},{default:(0,s.w5)((()=>[(0,s.Uk)("Zmeniť heslo")])),_:1})])])),_:1})}e(7658);var h=e(3053),f=e(9117),v=e(7648),$=e(5941),b={data(){return{errorUtils:v.Z,v$:(0,h.ZP)(),form:{},showPassword:!1,showConfirmationPassword:!1}},validations(){return{form:{code:{required:f.C1,integer:f._L,minLength:(0,f.Ei)(6),maxLength:(0,f.BS)(6)},email:{required:f.C1,email:f.Do},password:{required:f.C1,minLength:(0,f.Ei)(8)},password_confirmation:{required:f.C1,minLength:(0,f.Ei)(8),sameAs:(0,f.sH)(this.form.password)}}}},methods:{async submit(){if(!await this.v$.$validate())return $.log(this.v$);try{await this.$axios.post_data("v1/auth/reset",this.form),this.$router.push({name:"Login"})}catch(o){this.$toast.error(o.data.error)}}}},_=e(89);const C=(0,_.Z)(b,[["render",w]]);var g=C,P={components:{AResetPasswordForm:g}};const V=(0,_.Z)(P,[["render",i]]);var y=V}}]);
//# sourceMappingURL=9396.c6b05543.js.map