1import{d as _,u as y,H as x,M as g,b as l,e as t,h as o,t as u,i as w,k,v as h,n as N,m as V,g as m,f as M,w as q,r,_ as B,a as d,W as C}from"./DcA2CMtJ.js";const E={class:"auth-card"},R={key:0,class:"alert alert-err"},S={class:"field"},z=["disabled"],A={class:"center muted",style:{margin:"18px 0 0","font-size":".94em"}},L=_({__name:"forgot",setup(D){y({title:"ÐоÑÑÑановление паÑÐ¾Ð»Ñ â MagicLoop",meta:[{name:"robots",content:"noindex"}]});const{requestPasswordReset:p}=x(),f=g(),n=r(""),s=r(""),a=r(!1);async function c(){if(a.value)return;s.value="";const i=n.value.trim();if(!/^[^@\s]+@[^@\s]+\.[a-zа-Ñ]{2,}$/i.test(i)){s.value="ÐведиÑе e-mail в ÑоÑмаÑе имÑ@поÑÑа.ÑÑ";return}a.value=!0;try{await p(i),await f.push({path:"/reset",query:{email:i}})}catch(e){e instanceof C?s.value=e.message:(console.error(e),s.value="Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ ÐºÐ¾Ð´. ÐопÑобÑйÑе еÑÑ Ñаз.")}finally{a.value=!1}}return(i,e)=>{const v=B;return d(),l("section",E,[e[4]||(e[4]=t("h1",null,"ÐоÑÑÑановление паÑолÑ",-1)),e[5]||(e[5]=t("p",{class:"hint",style:{margin:"6px 0 20px"}}," УкажиÑе поÑÑÑ, на коÑоÑÑÑ Ð·Ð°ÑегиÑÑÑиÑован аккаÑнÑ. ÐÑ Ð¿ÑиÑлÑм код Ð´Ð»Ñ ÑÐ¼ÐµÐ½Ñ Ð¿Ð°ÑолÑ. ",-1)),o(s)?(d(),l("p",R,u(o(s)),1)):w("",!0),t("form",{novalidate:"",onSubmit:V(c,["prevent"])},[t("div",S,[e[1]||(e[1]=t("label",{for:"email"},"E-mail",-1)),k(t("input",{id:"email","onUpdate:modelValue":e[0]||(e[0]=b=>N(n)?n.value=b:null),type:"email",autocomplete:"email",required:""},null,512),[[h,o(n)]])]),t("button",{class:"btn btn-primary btn-block",type:"submit",disabled:o(a)},u(o(a)?"ÐÑпÑавлÑемâ¦":"ÐÑиÑлаÑÑ ÐºÐ¾Ð´"),9,z)],32),t("p",A,[e[3]||(e[3]=m(" ÐÑпомнили паÑолÑ? ",-1)),M(v,{to:"/login"},{default:q(()=>[...e[2]||(e[2]=[m("ÐойÑи",-1)])]),_:1})])])}}});export{L 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.