Added "forgot password?" back

This commit is contained in:
a-ill
2023-08-02 00:42:25 +03:00
parent bebd1e2636
commit 12999c764e
44 changed files with 112 additions and 37 deletions

View File

@@ -1 +1 @@
import{S as t,i as e,a as s,b as o,k as n,s as i,e as a,c as u,n as l,d as r,f as c,l as m,g as d,r as p,m as h,o as f,j as g}from"./index-6e99513e.js";import*as b from"../../../../../../../../../js/libraries/authTools.js";function w(t){let e,s,n,i,h,f,g,b,w,y,x,I,k,v,E,$,j,C,L,T,P,B,G,H,M;return{c(){e=a("div"),s=a("h2"),s.textContent="LOG IN",n=u(),i=a("label"),i.textContent="Email ",h=a("span"),f=u(),g=a("input"),b=u(),w=a("div"),y=a("label"),y.textContent="Password ",x=a("span"),I=u(),k=a("input"),v=u(),E=a("button"),E.innerHTML='<object type="image/svg+xml" data="/img/auth/eye_icon.svg" title="eye icon"></object>',$=u(),j=a("div"),C=a("input"),L=a("label"),L.textContent="remember me",T=u(),P=a("button"),P.textContent="Log in",B=u(),G=a("a"),this.c=l,r(s,"class","auth-title"),r(i,"class","auth-label"),r(i,"for","emailInput"),r(h,"id","email-msg"),r(g,"id","emailInput"),r(g,"class","authEmailInput"),r(g,"type","email"),r(y,"class","auth-label"),r(y,"for","passwordInput"),r(x,"id","password-msg"),r(k,"id","passwordInput"),r(k,"class","authPasswordInput"),r(k,"type","password"),r(E,"class","eye-icon"),r(w,"class","password-field"),r(C,"type","checkbox"),r(C,"id","remember-me-checkbox"),r(L,"id","remember-me-label"),r(L,"for","passwordInput"),r(j,"id","remember-me"),r(P,"class","auth-button"),r(G,"id","forgot-password"),r(G,"href","forgot-password"),r(e,"id","login-group"),r(e,"class","pane auth-pane")},m(a,u){o(a,e,u),c(e,s),c(e,n),c(e,i),c(e,h),t[9](h),c(e,f),c(e,g),t[10](g),c(e,b),c(e,w),c(w,y),c(w,x),t[11](x),c(w,I),c(w,k),t[12](k),c(w,v),c(w,E),t[13](E),c(e,$),c(e,j),c(j,C),t[15](C),c(j,L),c(e,T),c(e,P),c(e,B),c(e,G),H||(M=[m(E,"click",t[14]),m(P,"click",t[16])],H=!0)},p:l,i:l,o:l,d(s){s&&d(e),t[9](null),t[10](null),t[11](null),t[12](null),t[13](null),t[15](null),H=!1,p(M)}}}function y(t,e,s){let o,n,i,a,u,l,r,c,m,{focused:d=!1}=e,p=h("auth");function w(){if(p.googleInit){google.accounts.id.renderButton(m,{theme:"outline",size:"large"});let t=m.getElementsByTagName("iframe")[0];t.style.height="5rem",t.style.width="5rem"}else setTimeout(w,100)}f((()=>{s(7,c.checked=!0,c),s(2,i={email:o,password:n,remember:c}),s(6,r={email:u,password:l}),p.msgs=r,p.remember=c,p.loginGoogle=m,document.addEventListener("keypress",(function(t){"Enter"==t.code&&d&&b.login(r,i)})),w()}));return t.$$set=t=>{"focused"in t&&s(8,d=t.focused)},[o,n,i,a,u,l,r,c,d,function(t){g[t?"unshift":"push"]((()=>{u=t,s(4,u)}))},function(t){g[t?"unshift":"push"]((()=>{o=t,s(0,o)}))},function(t){g[t?"unshift":"push"]((()=>{l=t,s(5,l)}))},function(t){g[t?"unshift":"push"]((()=>{n=t,s(1,n)}))},function(t){g[t?"unshift":"push"]((()=>{a=t,s(3,a)}))},()=>b.changePasswordVisibility(a),function(t){g[t?"unshift":"push"]((()=>{c=t,s(7,c)}))},()=>b.login(r,i)]}class x extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';@import '/css/auth.css';</style>",e(this,{target:this.shadowRoot,props:s(this.attributes),customElement:!0},y,w,i,{focused:8},null),t&&(t.target&&o(t.target,this,t.anchor),t.props&&(this.$set(t.props),n()))}static get observedAttributes(){return["focused"]}get focused(){return this.$$.ctx[8]}set focused(t){this.$$set({focused:t}),n()}}customElements.define("login-component",x);export{x as default};
import{S as t,i as e,a as s,b as o,k as n,s as a,e as i,c as u,t as l,n as r,d as c,f as d,l as m,g as p,r as h,m as f,o as g,j as b}from"./index-6a7bc1e2.js";import*as w from"../../../../../../../../../js/libraries/authTools.js";function y(t){let e,s,n,a,f,g,b,w,y,I,k,v,E,$,j,C,L,T,P,B,G,H,M,N,R,z;return{c(){e=i("div"),s=i("h2"),s.textContent="LOG IN",n=u(),a=i("label"),a.textContent="Email ",f=i("span"),g=u(),b=i("input"),w=u(),y=i("div"),I=i("label"),I.textContent="Password ",k=i("span"),v=u(),E=i("input"),$=u(),j=i("button"),j.innerHTML='<object type="image/svg+xml" data="/img/auth/eye_icon.svg" title="eye icon"></object>',C=u(),L=i("div"),T=i("input"),P=i("label"),P.textContent="remember me",B=u(),G=i("button"),G.textContent="Log in",H=u(),M=i("a"),N=l("Forgot password?"),this.c=r,c(s,"class","auth-title"),c(a,"class","auth-label"),c(a,"for","emailInput"),c(f,"id","email-msg"),c(b,"id","emailInput"),c(b,"class","authEmailInput"),c(b,"type","email"),c(I,"class","auth-label"),c(I,"for","passwordInput"),c(k,"id","password-msg"),c(E,"id","passwordInput"),c(E,"class","authPasswordInput"),c(E,"type","password"),c(j,"class","eye-icon"),c(y,"class","password-field"),c(T,"type","checkbox"),c(T,"id","remember-me-checkbox"),c(P,"id","remember-me-label"),c(P,"for","passwordInput"),c(L,"id","remember-me"),c(G,"class","auth-button"),c(M,"id","forgot-password"),c(M,"href","/"+x+"/reset-password"),c(e,"id","login-group"),c(e,"class","pane auth-pane")},m(i,u){o(i,e,u),d(e,s),d(e,n),d(e,a),d(e,f),t[9](f),d(e,g),d(e,b),t[10](b),d(e,w),d(e,y),d(y,I),d(y,k),t[11](k),d(y,v),d(y,E),t[12](E),d(y,$),d(y,j),t[13](j),d(e,C),d(e,L),d(L,T),t[15](T),d(L,P),d(e,B),d(e,G),d(e,H),d(e,M),d(M,N),R||(z=[m(j,"click",t[14]),m(G,"click",t[16])],R=!0)},p:r,i:r,o:r,d(s){s&&p(e),t[9](null),t[10](null),t[11](null),t[12](null),t[13](null),t[15](null),R=!1,h(z)}}}let x="en";function I(t,e,s){let o,n,a,i,u,l,r,c,d,{focused:m=!1}=e,p=f("auth");function h(){if(p.googleInit){google.accounts.id.renderButton(d,{theme:"outline",size:"large"});let t=d.getElementsByTagName("iframe")[0];t.style.height="5rem",t.style.width="5rem"}else setTimeout(h,100)}g((()=>{s(7,c.checked=!0,c),s(2,a={email:o,password:n,remember:c}),s(6,r={email:u,password:l}),p.msgs=r,p.remember=c,p.loginGoogle=d,document.addEventListener("keypress",(function(t){"Enter"==t.code&&m&&w.login(r,a)})),h()}));return t.$$set=t=>{"focused"in t&&s(8,m=t.focused)},[o,n,a,i,u,l,r,c,m,function(t){b[t?"unshift":"push"]((()=>{u=t,s(4,u)}))},function(t){b[t?"unshift":"push"]((()=>{o=t,s(0,o)}))},function(t){b[t?"unshift":"push"]((()=>{l=t,s(5,l)}))},function(t){b[t?"unshift":"push"]((()=>{n=t,s(1,n)}))},function(t){b[t?"unshift":"push"]((()=>{i=t,s(3,i)}))},()=>w.changePasswordVisibility(i),function(t){b[t?"unshift":"push"]((()=>{c=t,s(7,c)}))},()=>w.login(r,a)]}class k extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';@import '/css/auth.css';</style>",e(this,{target:this.shadowRoot,props:s(this.attributes),customElement:!0},I,y,a,{focused:8},null),t&&(t.target&&o(t.target,this,t.anchor),t.props&&(this.$set(t.props),n()))}static get observedAttributes(){return["focused"]}get focused(){return this.$$.ctx[8]}set focused(t){this.$$set({focused:t}),n()}}customElements.define("login-component",k);export{k as default};