1import{k as e,l as a,ci as s,r as l,o,c as t,n,q as r,s as d,h as i,B as u,a8 as p,O as c,a9 as f,M as m,w,aH as b,aJ as v,ab as h,C as y,V as _,a7 as V,D as P,ag as x}from"./index-94ffe496.js";import{_ as k}from"./AppTextField-38baa2bf.js";import{a as g,b as j}from"./auth-v1-top-shape-c78602c0.js";import{V as C}from"./VNodeRenderer-dd9772bb.js";import{r as M,p as R,c as S}from"./validators-42fae42e.js";import{b as T}from"./route-block-83d24a4e.js";import{V as q,a as H}from"./VRow-997c6631.js";import{V as L}from"./VSnackbar-00377885.js";const N={class:"auth-wrapper d-flex align-center justify-center pa-4"},U={class:"position-relative my-sm-16"},B={class:"d-flex"},F=n("h5",{class:"text-h5 mb-1"}," Reset Password ð ",-1),I={class:"mb-0"},z={class:"font-weight-bold"},A=n("span",null,"Back to login",-1),D={__name:"reset-password",setup(T){const D=e(),J=a({newPassword:"",confirmPassword:""}),K=s().query.email,O=s().query.token,$=a(!1),E=a(),G=a(!1),Q=a(!1),W=a(!1),X=()=>{var e;null==(e=E.value)||e.validate().then(({valid:e})=>{e&&(W.value=!0,x.post("reset/password",{token:O,email:K,password:J.value.newPassword,password_confirmation:J.value.confirmPassword}).then(e=>{W.value=!1,$.value=!0,setTimeout(()=>{D.push("/login")},3e3)}).catch(e=>{W.value=!1}))})};return(e,a)=>{const s=k,x=l("RouterLink");return o(),t("div",N,[n("div",U,[r(d(C),{nodes:("h"in e?e.h:d(i))("div",{innerHTML:d(g)}),class:"text-primary auth-v1-top-shape d-none d-sm-block"},null,8,["nodes"]),r(d(C),{nodes:("h"in e?e.h:d(i))("div",{innerHTML:d(j)}),class:"text-primary auth-v1-bottom-shape d-none d-sm-block"},null,8,["nodes"]),r(V,{class:"auth-card pa-4","max-width":"448"},{default:u(()=>[r(p,{class:"justify-center"},{prepend:u(()=>[n("div",B,[r(d(C),{nodes:d(c).app.logo},null,8,["nodes"])])]),default:u(()=>[r(f,{class:"font-weight-bold text-capitalize text-h5 py-1"},{default:u(()=>[m(w(d(c).app.title),1)]),_:1})]),_:1}),r(b,{class:"pt-2"},{default:u(()=>[F,n("p",I,[m(" for "),n("span",z,w(d(K)),1)])]),_:1}),r(b,null,{default:u(()=>[r(v,{ref_key:"refVForm",ref:E,onSubmit:h(X,["prevent"])},{default:u(()=>[r(q,null,{default:u(()=>[r(H,{cols:"12"},{default:u(()=>[r(s,{modelValue:d(J).newPassword,"onUpdate:modelValue":a[0]||(a[0]=e=>d(J).newPassword=e),autofocus:"",label:"New Password","append-inner-icon":d(Q)?"tabler-eye-off":"tabler-eye",type:d(G)?"text":"password","onClick:appendInner":a[1]||(a[1]=e=>G.value=!d(G)),rules:[d(M),d(R)]},null,8,["modelValue","append-inner-icon","type","rules"])]),_:1}),r(H,{cols:"12"},{default:u(()=>[r(s,{modelValue:d(J).confirmPassword,"onUpdate:modelValue":a[2]||(a[2]=e=>d(J).confirmPassword=e),label:"Confirm Password",type:d(Q)?"text":"password","append-inner-icon":d(Q)?"tabler-eye-off":"tabler-eye","onClick:appendInner":a[3]||(a[3]=e=>Q.value=!d(Q)),rules:[d(M),d(S)(d(J).confirmPassword,d(J).newPassword)]},null,8,["modelValue","type","append-inner-icon","rules"])]),_:1}),r(H,{cols:"12"},{default:u(()=>[r(y,{block:"",type:"submit",disabled:d(W),loading:d(W)},{default:u(()=>[m(" Set New Password ")]),_:1},8,["disabled","loading"])]),_:1}),r(H,{cols:"12"},{default:u(()=>[r(x,{class:"d-flex align-center justify-center",to:{name:"login"}},{default:u(()=>[r(_,{icon:"tabler-chevron-left",class:"flip-in-rtl"}),A]),_:1})]),_:1})]),_:1})]),_:1},8,["onSubmit"])]),_:1})]),_:1})]),r(L,{modelValue:d($),"onUpdate:modelValue":a[4]||(a[4]=e=>P($)?$.value=e:null),location:"top end",color:"success"},{default:u(()=>[m(" Password reset successful. ")]),_:1},8,["modelValue"])])}}};"function"==typeof T&&T(D);export{D as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.