1import{d as R,e as T,b2 as A,b as F,N as r,p as a,l as v,E as l,G as $,C as p,F as I,H as d,M as u,L as i,m as s,aE as L,aK as _,O as y,aD as P,aV as q,aL as D,b0 as E,Q as U,K}from"./DI1JW_Kc.js";import{_ as z}from"./DrUTgx0D.js";const G={class:"new-password email-check"},H={key:0,class:"new-password__heading h2"},O={key:1,class:"new-password__description"},Q=R({__name:"ViewsLoginNewPasswordPage",props:{content:{}},setup(W){var g,V;const{t:h}=T(),k=A(),w=F(),o=r(""),t=r(""),c=r(null),f=r(null),S=((g=w.query)==null?void 0:g.code)||"",x=((V=w.query)==null?void 0:V.email)||"";async function B(){try{await q("reset",()=>k.reset({resetCode:S.toString(),email:decodeURI(x.toString()),newPassword:t.value})),o.value="",t.value="",f.value=h("Validation.ResetPassword.NewPassword"),c.value=_.Success}catch{}}return(e,n)=>{const C=D,b=E,N=U,M=z;return a(),v(M,null,{default:l(()=>[$("div",G,[e.content?(a(),p(I,{key:0},[e.content.headlineText?(a(),p("h1",H,d(e.content.headlineText),1)):u("",!0),e.content.descriptionText?(a(),p("p",O,d(e.content.descriptionText),1)):u("",!0)],64)):u("",!0),i(s(L),{onSubmit:B},{default:l(()=>[s(c)==s(_).Success?(a(),v(C,{key:0,valid:s(c)==s(_).Success},{default:l(()=>[y(d(s(f)),1)]),_:1},8,["valid"])):u("",!0),i(b,{modelValue:s(o),"onUpdate:modelValue":n[0]||(n[0]=m=>P(o)?o.value=m:null),modelModifiers:{trim:!0},label:e.$t("Validation.Fields.Password"),type:"password",name:"reset.password",rules:{required:!0,regex:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$/},inputmode:"text","validate-on-blur":!0,"validate-on-input":!1},null,8,["modelValue","label"]),i(b,{modelValue:s(t),"onUpdate:modelValue":n[1]||(n[1]=m=>P(t)?t.value=m:null),modelModifiers:{trim:!0},label:e.$t("Validation.Fields.PasswordRepeat"),type:"password",name:"reset.confirmPassword",rules:"confirmed:@reset.password",inputmode:"text","validate-on-blur":!0,"validate-on-input":!1},null,8,["modelValue","label"]),i(N,{type:"submit",modifiers:["block"]},{default:l(()=>[y(d(e.$t("ResetPassword.ChangePassword")),1)]),_:1})]),_:1})])]),_:1})}}}),J=K(Q,[["__scopeId","data-v-8519f031"]]);export{J 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.