PageSourceSearch

https://indexfox.ai/_app/immutable/nodes/9.Cao5eH40.js

js indexfox.ai collected 2026-10-05 12:03:48 UTC 2,505 bytes, 1 lines download raw bytes

1import{p as e,k as a,M as s,o as t,f as r,N as o,b as i,u as c,v as l,w as n,Q as v,i as d,A as u,r as z,s as h,n as g,t as k,I as p,K as m,L as q}from"../chunks/bLQI57Zk.js";import{h as f,s as b}from"../chunks/m73MLEtS.js";const y=Object.freeze(Object.defineProperty({__proto__:null,load:async function({url:e}){return{code:e.searchParams.get("code"),state:e.searchParams.get("state"),oauthError:e.searchParams.get("error")}},prerender:!1},Symbol.toStringTag,{value:"Module"}));var P=r('<div class="auth-content loading svelte-z5kzqt"><div class="spinner svelte-z5kzqt"></div> <h2 class="svelte-z5kzqt">Authenticating...</h2> <p class="svelte-z5kzqt">Please wait while we complete your Google sign-in.</p></div>'),w=r('<div class="auth-content success svelte-z5kzqt"><div class="success-icon svelte-z5kzqt">✓</div> <h2 class="svelte-z5kzqt"> </h2> <p class="svelte-z5kzqt">Authentication successful. Redirecting to your dashboard...</p></div>'),A=r('<div class="auth-content error svelte-z5kzqt"><div class="error-icon svelte-z5kzqt">✕</div> <h2 class="svelte-z5kzqt">Authentication Failed</h2> <p class="svelte-z5kzqt"> </p> <p class="redirect-note svelte-z5kzqt">Redirecting to login page...</p></div>'),_=r('<div class="auth-callback-container svelte-z5kzqt"><div class="auth-card svelte-z5kzqt"><!></div></div>');
1function j(r,y){e(y,!1);let j=a(y,"data",8),O=n("loading"),T=n(""),E=n(null);function G(e,a){setTimeout(()=>{v(e)},a)}s(async()=>{if(j().oauthError)return l(O,"error"),l(T,"Authentication was cancelled or failed. Please try again."),void G("/login",3e3);if(!j().code||!j().state)return l(O,"error"),l(T,"Invalid authentication callback. Please try again."),void G("/login",3e3);try{await new Promise(e=>setTimeout(e,500));const e=await f(j().code,j().state);b(e),l(E,e),l(O,"success"),G("/dashboard",1500)}catch(e){console.error("Google OAuth callback error:",e),l(O,"error"),l(T,e.message||"Authentication failed. Please try again."),G("/login",3e3)}}),t();var I=_(),M=d(I),R=d(M),S=e=>{var a=P();i(e,a)},$=(e,a)=>{var s=e=>{var a=w(),s=h(d(a),2),t=d(s);z(s),g(2),z(a),k(e=>q(t,`Welcome back${e??""}!`),[()=>(u(E),m(()=>{var e;return(null==(e=u(E))?void 0:e.name)?`, ${u(E).name.split(" ")[0]}`:""}))],p),i(e,a)},t=(e,a)=>{var s=e=>{var a=A(),s=h(d(a),4),t=d(s,!0);z(s),g(2),z(a),k(()=>q(t,u(T))),i(e,a)};o(e,e=>{"error"===u(O)&&e(s)},a)};o(e,e=>{"success"===u(O)?e(s):e(t,!1)},a)};o(R,e=>{"loading"===u(O)?e(S):e($,!1)}),z(M),z(I),i(r,I),c()}export{j as component,y as universal};

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.