1import{z as S,a as B,r,o as $,b as x,d as N,e as I,f as p,j as o,_ as L,A as M,B as R,k as a,l as e,t,m as u,R as T,F as f,O as _,x as v,V,y as j}from"./Du8bl5Fj.js";import{_ as A}from"./XxJUwIaW.js";import{s as C}from"./BLtj1TVt.js";import{u as F}from"./CJ1kWvL2.js";const P={key:0},z={key:1},D={class:"form-group"},E={for:"requested-username"},K=["type","autocomplete"],O={type:"submit",class:"btn btn-primary"},X=S({__name:"request",setup(G){const{locale:m,t:d}=B(),b=M(R),l=r(d("forgotten_password")),n=r(),i=r(!1),c=j(()=>b?.value?.use_email_as_login?"email":"username"),y=r([{title:{[m.value]:d("login")},description:{},selected:!1,url:"/login"},{title:{[m.value]:l.value},description:{},selected:!1,url:""}]),{routeBreadcrumb:g}=F(y),k=async()=>{if(n.value?.value)try{await C(n.value.value),i.value=!0}catch{i.value=!1}};return $(()=>{n.value?.focus()}),x({title:l}),N(),(s,H)=>{const q=V,w=A,h=L;return a(),I(h,{breadcrumb:o(g)},{default:p(()=>[e("h1",null,t(o(l)),1),o(i)?(a(),u("div",P,t(s.$t("v1.views.login.request.requestReceived")),1)):(a(),u("div",z,[e("p",null,t(s.$t("password_renew_text")),1),e("form",{onSubmit:T(k,["prevent"])},[e("div",D,[e("label",E,[o(c)==="email"?(a(),u(f,{key:0},[_(t(s.$t("email_address")),1)],64)):(a(),u(f,{key:1},[_(t(s.$t("userid")),1)],64))]),e("input",{id:"requested-username",ref_key:"requestInput",ref:n,type:o(c)==="email"?"email":"text",autocomplete:o(c),class:"form-control",required:""},null,8,K)]),e("button",O,t(s.$t("ask_for_new_password")),1)],32)])),v(w,{to:"/login",class:"d-inline-block mt-3"},{default:p(()=>[v(q,{icon:"fas fa-angle-left"}),_(" "+t(s.$t("v1.views.login.request.backToLogin")),1)]),_:1})]),_:1},8,["breadcrumb"])}}});export{X 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.