import{S as t,i as e,a as o,b as s,s as n,e as i,c as r,n as a,d as u,f as c,l as m,g as l,r as g,h as p,j as d}from"./index-6e99513e.js";import{sendText as f}from"../../../../../../../../../js/libraries/serverTools.js";import*as h from"../../../../../../../../../js/libraries/authTools.js";import"../../../../../../../../../js/components/login-component.js";import"../../../../../../../../../js/components/signup-component.js";function j(t){let e,o,n,p,d,f,h,j,b;return{c(){e=i("div"),o=i("div"),n=i("login-component"),p=r(),d=i("signup-component"),f=r(),h=i("div"),h.innerHTML="OR",this.c=a,u(o,"id","auth-grid-group"),u(h,"id","auth-or"),u(h,"class","pane"),u(e,"id","auth-group")},m(i,r){s(i,e,r),c(e,o),c(o,n),t[3](n),c(o,p),c(o,d),t[5](d),c(e,f),c(e,h),j||(b=[m(n,"click",t[4]),m(n,"keydown",y),m(d,"click",t[6]),m(d,"keydown",w)],j=!0)},p:a,i:a,o:a,d(o){o&&l(e),t[3](null),t[5](null),j=!1,g(b)}}}const y=()=>"",w=()=>"";function b(t,e,o){let s,n;h.redirectLogged();let i={googleInit:!1};function r(t){t==s?(o(0,s.focused=!0,s),o(1,n.focused=!1,n)):(o(0,s.focused=!1,s),o(1,n.focused=!0,n))}function a(t){console.log(t),f("/signup-google",t.credential,(t=>h.processLoginResponse(t,i.msgs,i.remember.checked)))}p("auth",i),function t(){"undefined"!=typeof google?(google.accounts.id.initialize({client_id:"93612176787-sr8qjqem4e3kok4msrnj8s1illt85a9g.apps.googleusercontent.com",callback:a,auto_select:!0,context:"signin"}),i.googleInit=!0):setTimeout(t,100)}();return[s,n,r,function(t){d[t?"unshift":"push"]((()=>{s=t,o(0,s)}))},()=>r(s),function(t){d[t?"unshift":"push"]((()=>{n=t,o(1,n)}))},()=>r(n)]}class k extends t{constructor(t){super(),this.shadowRoot.innerHTML="",e(this,{target:this.shadowRoot,props:o(this.attributes),customElement:!0},b,j,n,{},null),t&&t.target&&s(t.target,this,t.anchor)}}customElements.define("auth-component",k);export{k as default};