1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["ResetPasswordLayout.16sOcwQV.js","app.6-zBPm55.js","vendor.kmuNf4Gr.js","css/styles.BuZ8GZAp.css","index.CKGmuCIR.js","index.DFNe3OJX.js","input-mixin.BU399U4z.js"])))=>i.map(i=>d[i]); 2import{_ as c,a as w,r as n,d as m}from"./app.6-zBPm55.js";import{r as l,d as g,e as P,w as i,u as o,x as d,h as p,H as v,C as b,z as u}from"./vendor.kmuNf4Gr.js";/* empty css */const C={name:"SetNewPassword",data(){return{newPassword:"",passwordConfirm:"",hasError:!1}},methods:{generatePassword(...e){return n("SetNewPassword.generatePassword",()=>{m({method:"POST",data:{},url:"/portal/reset-password--get-generated-password"}).then(s=>{s&&(this.passwordConfirm=s,this.newPassword=s,this.hasError=!1,this.$refs.passwordNew.setGeneratePassword(s))})},this,e)},toLogin(...e){return n("SetNewPassword.toLogin",()=>{window.location.href="/portal/login"},this,e)},setNewPassword(...e){return n("SetNewPassword.setNewPassword",()=>{m({url:`/portal/reset-password--set-new-password?code=${this.$route.query.code}`,method:"POST",data:{password_new:this.newPassword,password_confirm:this.passwordConfirm}}).then(s=>{s.result?(this.$showSuccess(s.message,4),setTimeout(()=>{this.passwordConfirm="",this.newPassword="",this.toLogin()},1e3)):(this.hasError=!0,this.$showError(s.message,4))})},this,e)},changeModelValue(...e){return n("SetNewPassword.changeModelValue",()=>{this.hasError=!1},this,e)}},components:{ResetPasswordLayout:u(()=>w(()=>import("./ResetPasswordLayout.16sOcwQV.js"),__vite__mapDeps([0,1,2,3]))),XForm:u(()=>w(()=>import("./index.CKGmuCIR.js"),__vite__mapDeps([4,1,2,3]))),XInputPassword:u(()=>w(()=>import("./index.DFNe3OJX.js"),__vite__mapDeps([5,1,2,3,6])))}},N={class:"login-portal-form"},E={class:"login-portal-heading"},S={class:"login-portal-info"},y={class:"form-input-group form-input-group-password"},V={class:"col-form-label"},R=["title"],L={class:"form-input-group form-input-group-password"},$={class:"col-form-label"},I={class:"login-footer new-password"},T=["value"];function k(e,s,O,A,t,a){const _=l("x-input-password"),f=l("x-form"),h=l("reset-password-layout");return g(),P(h,null,{default:i(()=>[o("div",N,[o("div",E,d(e.$t("portal","Change password")),1),o("div",S,d(e.$t("portal",'Create a new password or use the "Generate password" button for a secure random password.')),1),p(f,{id:"admin_set_new_password_form","check-unsaved-data-before-leave-page":!1,class:v(["form-signin",{"has-error":t.hasError}]),role:"form"},{default:i(()=>[o("div",y,[o("label",V,d(e.$t("portal","New password")),1),p(_,{ref:"passwordNew","model-value":t.newPassword,"generate-password":!1,options:{id:"password_new",placeholder:e.$t("portal","Enter new password"),name:"ResetPassword[password_new]",autocomplete:"new-password"},"onUpdate:modelValue":s[1]||(s[1]=r=>t.newPassword=r)},{"generate-password-button":i(()=>[o("button",{id:"password_new_generate_button",type:"button",class:"btn btn-outline-secondary btn-icon generate-password",title:e.$t("common","Generate password"),onClick:s[0]||(s[0]=(...r)=>a.generatePassword&&a.generatePassword(...r))},[...s[4]||(s[4]=[o("i",{class:"icon-ic_fluent_wand_24_regular"},null,-1)])],8,R)]),_:1},8,["model-value","options"])]),o("div",L,[o("label",$,d(e.$t("portal","Repeat new password")),1),p(_,{"model-value":t.passwordConfirm,"generate-password":!1,options:{placeholder:e.$t("portal","Repeat new password"),name:"ResetPassword[password_confirm]",id:"password_confirm"},"onUpdate:modelValue":s[2]||(s[2]=r=>t.passwordConfirm=r),onInput:a.changeModelValue},null,8,["model-value","options","onInput"])]),o("div",I,[o("input",{id:"admin_set_new_password_submit",type:"submit",class:"btn btn-primary",value:e.$t("portal","Save new password"),onClick:s[3]||(s[3]=b((...r)=>a.setNewPassword&&a.setNewPassword(...r),["prevent"]))},null,8,T)])]),_:1},8,["class"])])]),_:1})}const G=c(C,[["render",k]]);export{G as default}; 3//# sourceMappingURL=SetNewPassword.BhuK32a4.js.map
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.