1import E from"./Bl7IzWki.js";import{bD as F,a4 as A,a7 as M,E as $,ao as R,e as n,ay as B,o as _,c as x,k as e,j as i,w as d,a1 as l,m as s,a9 as f,aj as D,aa as N,d as U,az as j,by as q}from"./CnynpXua.js";import{u as T,a as z,f as G,g as I}from"./B-BinQ6x.js";import"./BjDyCcIZ.js";import"./CyUCgW2Q.js";const H=()=>({...F(),token:null,newPass:null}),J={class:"bg-gray-200 py-6 sm:py-24"},K={class:"justify-center px-6 py-8 gap-8 lg:py-0"},O={class:"w-full h-full m-auto bg-white rounded-lg shadow my-2 md:mt-0 sm:max-w-md xl:p-0"},Q={class:"p-6 space-y-4 md:space-y-6 sm:p-8"},W={class:"text-xl font-bold leading-tight tracking-tight text-gray-900 md:text-2xl"},X={class:"block mb-2 text-sm font-medium text-gray-900"},Y={class:"block mb-2 text-sm font-medium text-gray-900"},Z={class:"block mb-2 text-sm font-medium text-gray-900"},ee={key:0,className:"alert alert-error shadow-lg"},le=A({__name:"AccountCreatePassword",setup(se){const{t:r}=M(),y=$(),v=R(),P=n(!1),w=n(null),m=n(""),u=n(""),c=n(""),k=n(v.query.token),g=T(),V=z(),h=G(6,r("Login.PassLen")),L=I(u);function C(){w.value.validate().then(({valid:o,errors:t})=>{o&&(P.value=!0,y.resetPassword({...H(),token:k.value,newPass:u.value}).then(()=>{U().addToastMessage(r("Login.CreatePasswordSuccess"),j.success)}).finally(()=>{q().push("/account")}))})}function b(){switch(y.$state.authStatus){case"AuthenticationError":return r("Login.AuthenticationError");case"PassForgottenSuccess":return r("Login.PassForgottenSuccess");case"PassForgottenProgress":return r("Login.PassForgottenProgress");case"PassForgottenError":return r("Login.PassForgottenError");default:return""}}return(o,t)=>{const p=E,S=B("vee-form");return _(),x("div",null,[e("section",J,[e("div",K,[i(S,{ref_key:"Form",ref:w},{default:d(()=>[e("div",O,[e("div",Q,[e("h1",W,l(o.$t("Login.CreatePassword")),1),e("div",null,[i(p,{name:"emailcrea",modelValue:s(m),"onUpdate:modelValue":t[0]||(t[0]=a=>f(m)?m.value=a:null),mode:"front","class-input":"bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 h-10",rules:[s(g),s(V)]},{default:d(()=>[e("span",X,l(o.$t("Login.Email"))+" *",1)]),_:1},8,["modelValue","rules"])]),e("div",null,[i(p,{type:"password",modelValue:s(u),"onUpdate:modelValue":t[1]||(t[1]=a=>f(u)?u.value=a:null),name:"password",mode:"front","class-input":"bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 h-10",rules:[s(g),s(h)]},{default:d(()=>[e("span",Y,l(o.$t("Login.Password"))+" *",1)]),_:1},8,["modelValue","rules"])]),e("div",null,[i(p,{type:"password",modelValue:s(c),"onUpdate:modelValue":t[2]||(t[2]=a=>f(c)?c.value=a:null),name:"confipassword",mode:"front","class-input":"bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 h-10",rules:[s(g),s(h),s(L)]},{default:d(()=>[e("span",Z,l(o.$t("Login.ConfirmPassword"))+" *",1)]),_:1},8,["modelValue","rules"])]),e("div",{class:"w-full bg-primary text-white bg-primary-600 hover:bg-primary-700 focus:ring-4 focus:outline-none focus:ring-primary-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center cursor-pointer",onClick:t[3]||(t[3]=D(a=>C(),["stop"]))},l(o.$t("Global.Validate")),1),b().length>0?(_(),x("div",ee,l(b()),1)):N("",!0)])])]),_:1},512)])])])}}});export{le 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.