(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3770],{4129:function(e,t,n){Promise.resolve().then(n.bind(n,5086))},5086:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var i=n(7437),o=n(2265);function a(){let[e,t]=(0,o.useState)("Authenticating with Google...");return(0,o.useEffect)(()=>{(async function(){let e=new URLSearchParams(window.location.hash.substring(1)).get("id_token");if(!e){t("Authentication failed. Redirecting..."),setTimeout(()=>{window.location.href="/"},2e3);return}try{let n=await fetch("/api/auth/google/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({credential:e})});(await n.json()).success?window.location.href="/":(t("Login failed. Redirecting..."),setTimeout(()=>{window.location.href="/"},2e3))}catch(e){t("Something went wrong. Redirecting..."),setTimeout(()=>{window.location.href="/"},2e3)}})()},[]),(0,i.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,i.jsxs)("div",{className:"text-center",children:[(0,i.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-[#009DE0] mx-auto mb-4"}),(0,i.jsx)("p",{className:"text-gray-600 dark:text-gray-400",children:e})]})})}}},function(e){e.O(0,[2971,2117,1744],function(){return e(e.s=4129)}),_N_E=e.O()}]);