PageSourceSearch

https://aivpn.space/_nuxt/DHEJZO7g.js

js aivpn.space collected 2026-10-02 01:09:24 UTC 3,426 bytes, 1 lines download raw bytes

1import{d as M,m as P,H as k,I as S,G as V,O as B,n as C,r,i as E,c as f,w as g,h as I,B as b,o as u,a as e,s as a,b as w,P as A,Q as v,S as N,T as G,U as T,_ as U,f as $,q as L,J as O}from"./DjimhBmC.js";import{A as q,G as D}from"./C6YOHWH7.js";import{I as H,a as J}from"./Bb-pVe6p.js";const Q=M({name:"Login",components:{GoogleAuthButton:D,AppleAuthButton:q,IconEyeOpen:J,IconEyeCrossed:H},setup(){const{t:o}=P(),s=r(""),l=r(""),n=r(""),p=r(!1),i=r(!1),_=k(),d=S(),c=V(),m=B(),h=()=>{i.value=!i.value},t=async()=>{n.value="";try{await c.loginWithEmail({email:s.value,password:l.value,rememberMe:p.value}),await _.push(d({path:"/profile"})),m.addToast({type:"success",title:o("common.toast.login"),icon:"auth"})}catch(y){y instanceof Error?n.value=y.message:n.value="Unexpected error"}};return C(()=>{s.value="",l.value=""}),{email:s,password:l,rememberMe:p,errorMessage:n,showPassword:i,togglePasswordVisibility:h,handleSubmit:t,localePath:d}}}),R={class:"form"},W={class:"form__title"},j={class:"form__caption"},z={class:"form__social"},F={class:"form__divider"},K={class:"form__field"},X=["placeholder"],Y={class:"form__field form__field--password"},Z=["type","placeholder"],x=["aria-label"],oo={class:"form__additional"},eo={class:"form__remember"},so={class:"form__remember-text"},to={type:"submit",class:"form__submit btn"},ao={key:0,class:"form__error"},no={class:"form__footer"};function ro(o,s,l,n,p,i){const _=b("GoogleAuthButton"),d=b("IconEyeOpen"),c=b("IconEyeCrossed"),m=U,h=I;return u(),f(h,{name:"auth"},{default:g(()=>[e("div",R,[e("h1",W,a(o.$t("auth.login.title")),1),e("p",j,a(o.$t("auth.login.caption")),1),e("div",z,[w(_)]),e("div",F,[e("span",null,a(o.$t("auth.login.divider")),1)]),e("form",{class:"form__form",onSubmit:s[4]||(s[4]=A((...t)=>o.handleSubmit&&o.handleSubmit(...t),["prevent"]))},[e("div",K,[v(e("input",{"onUpdate:modelValue":s[0]||(s[0]=t=>o.email=t),id:"email",type:"email",class:"form__input",placeholder:o.$t("auth.login.email_placeholder"),required:"",autocomplete:"email"},null,8,X),[[N,o.email]])]),e("div",Y,[v(e("input",{"onUpdate:modelValue":s[1]||(s[1]=t=>o.password=t),id:"password",type:o.showPassword?"text":"password",class:"form__input",placeholder:o.$t("auth.login.password_placeholder"),required:"",autocomplete:"current-password"},null,8,Z),[[G,o.password]]),e("button",{type:"button",class:"form__password-toggle",onClick:s[2]||(s[2]=(...t)=>o.togglePasswordVisibility&&o.togglePasswordVisibility(...t)),"aria-label":o.showPassword?"Hide password":"Show password"},[o.showPassword?(u(),f(d,{key:0})):(u(),f(c,{key:1}))],8,x)]),e("div",oo,[e("label",eo,[v(e("input",{"onUpdate:modelValue":s[3]||(s[3]=t=>o.rememberMe=t),type:"checkbox",class:"form__remember-input"},null,512),[[T,o.rememberMe]]),s[5]||(s[5]=e("span",{class:"form__remember-box"},[e("span",{class:"form__remember-icon"},"✓")],-1)),e("span",so,a(o.$t("auth.login.remember_me")),1)]),w(m,{to:o.localePath({path:"/auth/forgot-password"}),class:"form__forgot"},{default:g(()=>[$(a(o.$t("auth.login.forgot_password")),1)]),_:1},8,["to"])]),e("button",to,a(o.$t("auth.login.submit_button")),1),o.errorMessage?(u(),L("p",ao,a(o.errorMessage),1)):O("",!0)],32),e("div",no,[e("span",null,a(o.$t("auth.login.no_account")),1),w(m,{to:o.localePath({path:"/auth/register"})},{default:g(()=>[$(a(o.$t("auth.login.sign_up_link")),1)]),_:1},8,["to"])])])]),_:1})}const uo=E(Q,[["render",ro]]);export{uo 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.