mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 22:39:34 +00:00
2 lines
4.6 KiB
JavaScript
2 lines
4.6 KiB
JavaScript
"use strict";(self["webpackChunkjandl"]=self["webpackChunkjandl"]||[]).push([[5880],{45880:function(o,r,e){e.r(r),e.d(r,{default:function(){return V}});var s=e(73396),a=e(23369);const t={class:"auth-card"},n=(0,s._)("h1",null,"Reset password",-1),l=(0,s._)("p",{class:"mb-10"},"We have sent you a confirmation code on your email. You can insert him or continue with link in your email",-1);function i(o,r,e,i,m,d){const u=(0,s.up)("A-reset-password-form");return(0,s.wg)(),(0,s.j4)(a.K,null,{default:(0,s.w5)((()=>[(0,s._)("div",t,[n,l,(0,s.Wm)(u)])])),_:1})}var m=e(87139),d=e(67312),u=e(96422),c=e(45869);const f={class:"d-flex flex-column"};function p(o,r,e,a,t,n){return(0,s.wg)(),(0,s.j4)(u.O,null,{default:(0,s.w5)((()=>[(0,s.Wm)(c.hw,{modelValue:t.form.code,"onUpdate:modelValue":r[0]||(r[0]=o=>t.form.code=o),label:"Code",autocomplete:"one-time-code","bg-color":"white",variant:"solo",type:"number",class:(0,m.C_)(["mb-2",{error:t.v$.form.code.$errors.length}]),hint:t.v$.form.code.$errors?t.errorUtils.parseErrors(t.v$.form.code.$errors):null,counter:6},null,8,["modelValue","hint","class"]),(0,s.Wm)(c.hw,{modelValue:t.form.email,"onUpdate:modelValue":r[1]||(r[1]=o=>t.form.email=o),label:"E-mail",autocomplete:"email","bg-color":"white",variant:"solo",type:"email",class:(0,m.C_)(["mb-2",{error:t.v$.form.email.$errors.length}]),hint:t.v$.form.email.$errors?t.errorUtils.parseErrors(t.v$.form.email.$errors):null},null,8,["modelValue","hint","class"]),(0,s.Wm)(c.hw,{modelValue:t.form.password,"onUpdate:modelValue":r[2]||(r[2]=o=>t.form.password=o),label:"Heslo",autocomplete:"new-password","bg-color":"white",variant:"solo",type:t.showPassword?"text":"password",class:(0,m.C_)(["mb-2",{error:t.v$.form.password.$errors.length}]),hint:t.v$.form.password.$errors?t.errorUtils.parseErrors(t.v$.form.password.$errors):null,counter:12,"append-icon":t.showPassword?"mdi-eye":"mdi-eye-off","onClick:append":r[3]||(r[3]=o=>t.showPassword=!t.showPassword)},null,8,["modelValue","type","hint","class","append-icon"]),(0,s.Wm)(c.hw,{modelValue:t.form.password_confirmation,"onUpdate:modelValue":r[4]||(r[4]=o=>t.form.password_confirmation=o),autocomplete:"new-password","bg-color":"white",variant:"solo",label:"Potvrdenie hesla",type:t.showConfirmationPassword?"text":"password",counter:12,class:(0,m.C_)(["mb-2",{error:t.v$.form.password_confirmation.$errors.length}]),hint:t.v$.form.password_confirmation.$errors?t.errorUtils.parseErrors(t.v$.form.password_confirmation.$errors):null,"append-icon":t.showConfirmationPassword?"mdi-eye":"mdi-eye-off","onClick:append":r[5]||(r[5]=o=>t.showConfirmationPassword=!t.showConfirmationPassword)},null,8,["modelValue","type","hint","class","append-icon"]),(0,s._)("div",f,[(0,s.Wm)(d.T,{class:"button",color:"#7F39FB",onClick:r[6]||(r[6]=o=>n.submit())},{default:(0,s.w5)((()=>[(0,s.Uk)("Change password")])),_:1})])])),_:1})}e(57658);var w=e(33053),h=e(69117),v=e(7648),$={data(){return{errorUtils:v.Z,v$:(0,w.ZP)(),form:{},showPassword:!1,showConfirmationPassword:!1}},validations(){return{form:{code:{required:h.C1,integer:h._L,minLength:(0,h.Ei)(6),maxLength:(0,h.BS)(6)},email:{required:h.C1,email:h.Do},password:{required:h.C1,minLength:(0,h.Ei)(12)},password_confirmation:{required:h.C1,minLength:(0,h.Ei)(12),sameAs:(0,h.sH)(this.form.password)}}}},methods:{async submit(){if(await this.v$.$validate())try{await this.$axios.post_data("v1/auth/reset",this.form),this.$router.push({name:"Login"})}catch(o){this.$toast.error(o)}}}},b=e(40089);const C=(0,b.Z)($,[["render",p]]);var _=C,g={components:{AResetPasswordForm:_}};const y=(0,b.Z)(g,[["render",i]]);var V=y},96422:function(o,r,e){e.d(r,{O:function(){return m}});var s=e(73396),a=e(4357),t=e(53185),n=e(44870),l=e(80320),i=e(89888);const m=(0,l.a)({name:"VForm",props:{...(0,a.vC)()},emits:{"update:modelValue":o=>!0,submit:o=>!0},setup(o,r){let{slots:e,emit:l}=r;const m=(0,a.Np)(o),d=(0,n.iH)();function u(o){o.preventDefault(),m.reset()}function c(o){const r=o,e=m.validate();r.then=e.then.bind(e),r.catch=e.catch.bind(e),r.finally=e.finally.bind(e),l("submit",r),r.defaultPrevented||e.then((o=>{let{valid:r}=o;var e;r&&(null==(e=d.value)||e.submit())})),r.preventDefault()}return(0,i.L)((()=>{var o;return(0,s.Wm)("form",{ref:d,class:"v-form",novalidate:!0,onReset:u,onSubmit:c},[null==(o=e.default)?void 0:o.call(e,m)])})),(0,t.F)(m,d)}})},23369:function(o,r,e){e.d(r,{K:function(){return l}});var s=e(73396),a=(e(98099),e(71138)),t=e(80320),n=e(89888);const l=(0,t.a)({name:"VContainer",props:{fluid:{type:Boolean,default:!1},...(0,a.Q)()},setup(o,r){let{slots:e}=r;return(0,n.L)((()=>(0,s.Wm)(o.tag,{class:["v-container",{"v-container--fluid":o.fluid}]},e))),{}}})}}]);
|
|
//# sourceMappingURL=5880.db99d93b.js.map
|