1import{d as R,v as T,x as D,a as p,c as w,o as P,f as A,i as g,w as H,j as s,k as t,b,e as x,q as e,J as N,K as z}from"./vue-7tAPG9--.js";import{u as E,a as U,h as $,l as j,i as y,c as L,I as F,f as G}from"./sequoia-ui-DTx61VBB.js";import{l as J,eS as K}from"./sequoia-core-DrxUOWtY.js";import"./vendor-C1rVTjBw.js";import"./lodash-C3EpVO28.js";import{A as O,_ as Q}from"./AuthSlider-Dn9M-fSy.js";import{B as W}from"./svg-B_1HDDW_.js";import{a as X}from"./index-YBuDX8x8.js";import"./uuid-DPhIvVwf.js";import"./sentry-DJ8MfWcZ.js";const Y={class:"auth-header"},Z={class:"auth-content"},ee={class:"auth-steps"},se={class:"auth-steps-inner"},te={class:"registration restore-password"},ae=["innerHTML"],oe={class:"flex mb-24 mt-64 mt-mobile-48 mt-tablet-32 color-success"},ne=["innerHTML"],fe=R({__name:"RestorePasswordPage",setup(le){const r=T(),_=D(),h=E(),{t:a}=U(),S=G(),i=p(""),u=p(""),c=p(!1),{isLoading:m,setLoading:f,handleError:V,errorMessages:C,passwordMinLength:d,passwordMaxLength:v}=$(),M=J("restore-password"),k=w(()=>h.theme),B=w(()=>m.value||i.value.length<d.value||u.value.length<d.value),I=()=>{_.push("/login")},q=async()=>{if(!m.value){f(!0);try{await K({id:r.query.id,accountId:r.query.accountID},{languageCode:h.languageCode,ctx:S,data:{new_password:i.value,new_password_repeated:u.value,code:r.query.code}}),c.value=!0,f(!1)}catch(n){M.error(n),V(n)}}};return P(()=>{const{accountID:n,id:o,code:l}=r.query;(!n||!o||!l)&&_.replace("/reset")}),(n,o)=>(g(),A(Q,null,{default:H(()=>[s("div",Y,[t(j,{"theme-forced":k.value},null,8,["theme-forced"])]),s("div",Z,[t(O),s("div",ee,[s("div",se,[s("div",te,[s("h4",{class:"h3 mb-24",innerHTML:e(a)("pwd_recovery")},null,8,ae),c.value?x("",!0):(g(),b("form",{key:0,novalidate:"",autocomplete:"off",onSubmit:N(q,["prevent"])},[t(y,{modelValue:i.value,"onUpdate:modelValue":o[0]||(o[0]=l=>i.value=l),"input-category":"floating",size:"medium",icon:"visibility",class:"mb-16","tab-index-for-button":-1,label:e(a)("password_reg"),minlength:e(d),maxlength:e(v),description:e(a
1)("password_min_symbols_warning")},null,8,["modelValue","label","minlength","maxlength","description"]),t(y,{modelValue:u.value,"onUpdate:modelValue":o[1]||(o[1]=l=>u.value=l),"input-category":"floating",size:"medium",icon:"visibility",class:"mb-24","tab-index-for-button":-1,label:e(a)("confirm_password"),minlength:e(d),maxlength:e(v)},null,8,["modelValue","label","minlength","maxlength"]),t(X,{messages:e(C),class:"ml-16 mb-24"},null,8,["messages"]),t(L,{loading:e(m),disabled:B.value,text:e(a)("edit_reg")},null,8,["loading","disabled","text"])],32)),c.value?(g(),b(z,{key:1},[s("div",oe,[t(F,{svg:e(W),class:"mr-8"},null,8,["svg"]),s("span",{class:"message",innerHTML:e(a)("pwd_changed")},null,8,ne)]),t(L,{href:"/login",text:e(a)("login_new_pwd"),onClick:I},null,8,["text"])],64)):x("",!0)])])])])]),_:1}))}});export{fe 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.