PageSourceSearch

https://magicloop.ru/_nuxt/BdVW_SwU.js

js magicloop.ru collected 2026-10-07 23:27:34 UTC 1,944 bytes, 1 lines download raw bytes

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.