1import{b as y,u as M,a as m,f as b,i as p,h as a,p as _,l as v,t as s,q as x,B as n,D as t,E as o}from"./BDpqmYey.js";import{d as V,a7 as g,i as l,M as E,a6 as P,ae as B,O as C}from"./app-DtMX8XgR.js";import"./Pkn795aj.js";const A={class:"_spacer",style:{"--MI_SPACER-min":"20px","--MI_SPACER-max":"28px"}},S={class:"_gaps_m"},h={key:1},$=y({__name:"MkForgotPassword",emits:["done","closed"],setup(q,{emit:k}){const f=k,r=M("dialog"),d=m(""),u=m(""),c=m(!1);async function w(){c.value=!0,await C("request-reset-password",{username:d.value,email:u.value}),f("done"),r.value?.close()}return(I,e)=>(p(),b(B,{ref_key:"dialog",ref:r,width:370,height:400,onClose:e[2]||(e[2]=i=>r.value?.close()),onClosed:e[3]||(e[3]=i=>f("closed"))},{header:a(()=>[t(o(s(l).ts.forgotPassword),1)]),default:a(()=>[_("div",A,[s(V).enableEmail?(p(),v("form",{key:0,onSubmit:x(w,["prevent"])},[_("div",S,[n(g,{modelValue:d.value,"onUpdate:modelValue":e[0]||(e[0]=i=>d.value=i),type:"text",pattern:"^[a-zA-Z0-9_]+$",spellcheck:!1,autofocus:"",required:""},{label:a(()=>[t(o(s(l).ts.username),1)]),prefix:a(()=>e[4]||(e[4]=[t("@")])),_:1},8,["modelValue"]),n(g,{modelValue:u.value,"onUpdate:modelValue":e[1]||(e[1]=i=>u.value=i),type:"email",spellcheck:!1,required:""},{label:a(()=>[t(o(s(l).ts.emailAddress),1)]),caption:a(()=>[t(o(s(l).ts._forgotPassword.enterEmail),1)]),_:1},8,["modelValue"]),n(E,{type:"submit",rounded:"",disabled:c.value,primary:"",style:{margin:"0 auto"}},{default:a(()=>[t(o(s(l).ts.send),1)]),_:1},8,["disabled"]),n(P,null,{default:a(()=>[t(o(s(l).ts._forgotPassword.ifNoEmail),1)]),_:1})])],32)):(p(),v("div",h,o(s(l).ts._forgotPassword.contactAdmin),1))])]),_:1},512))}});export{$ 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.