(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[241],{15577:function(t,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/[path]",function(){return e(69939)}])},47991:function(t,n,e){"use strict";function o(t,n,e,o){let i="Skelly | ".concat(n),c="https://skelly.gg".concat(t),r="https://skelly.gg/img/icons/skelly_logo.png",a={},l={};return a.description=e,a.keywords=o,l["og:url"]=c,l["og:type"]="website",l["og:title"]=i,l["og:description"]=e,l["og:image"]=r,a["twitter:card"]=r,l["twitter:domain"]="skelly.gg",l["twitter:url"]=c,a["twitter:title"]=i,a["twitter:description"]=e,a["twitter:image"]=r,{title:i,metaName:a,metaProperty:l}}e.d(n,{$:function(){return o}})},69939:function(t,n,e){"use strict";e.r(n),e.d(n,{default:function(){return w}});var o=e(85893),i=e(67294),c=e(11577),r=e(47991),a=e(97555),l=e(88926),s=e(11163),u=e(62645);let g={["/auth/".concat(a.D.LogIn)]:a.D.LogIn,["/auth/".concat(a.D.ForgotPassword)]:a.D.ForgotPassword,["/auth/".concat(a.D.SignUp)]:a.D.SignUp,["/auth/".concat(a.D.ResendLink)]:a.D.ResendLink};function h(){let t=(0,s.useRouter)(),n=(0,l.C)(t=>t.account.username),e=i.useRef(n),c=i.useRef(void 0);void 0!==e.current&&t.push("/profile");{let n=window.location.pathname,e=window.location.search;if(u.ZP.log("Auth(): Search = '".concat(e,"'")),c.current=g[n],void 0===c.current)return t.push("/404.html"),null}return n?null:(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{style:{position:"relative",width:"100vw",height:"100vh",marginTop:0,marginBottom:"2rem"},children:(0,o.jsx)(a.Z,{initialDisplay:c.current,onDisplayChange:n=>{u.ZP.log("Auth(): Display changed to '".concat(n,"'"));let e="/auth/".concat(n);window.location.pathname!==e&&t.replace(e+window.location.search)},loggedIn:()=>{u.ZP.log("Auth.loggedIn(): Login was successful (window.location.search: ".concat(window.location.search,")")),"?subscribe"===window.location.search?t.push("/settings"):window.location.search.startsWith("?profile=")?t.push("/g/".concat(window.location.search.replace("?profile=",""))):t.push("/network")}})})})}function w(){let{title:t,metaName:n,metaProperty:e}=(0,r.$)("/auth/login","Login","Login to Skelly.gg","Skelly, Skelly.gg, Sign up, Create account, Resend verification link, Forgot password, Log in, Gaming, eSports");return(0,o.jsx)(c.Z,{title:t,metaName:n,metaProperty:e,canonical:"https://skelly.gg/auth/login",apolloRequired:!0,children:(0,o.jsx)(h,{})})}}},function(t){t.O(0,[743,577,774,888,179],function(){return t(t.s=15577)}),_N_E=t.O()}]);