PageSourceSearch

https://term724.com/_app/immutable/nodes/89.Ce3E3P5K.js

js term724.com collected 2026-09-24 14:56:37 UTC 3,513 bytes, 1 lines download raw bytes

1import{s as I,d as p,i as v,b as f,c as _,h as V,e as S,f as g,g as b,o as L,p as k,r as C,C as q,n as D,a as T,k as x,t as E}from"../chunks/CmwRUFBg.js";import{S as O,i as W,t as w,a as P,c as $,d as z,m as A,b as J,e as M,g as N}from"../chunks/CKjf1XwJ.js";import{g as y}from"../chunks/DdQ3kaEp.js";import{p as B}from"../chunks/he1B4E5m.js";import{auth as F}from"../chunks/IGys7_ZS.js";import{$ as G}from"../chunks/CT4kNTSC.js";import{a as H}from"../chunks/CtHEeQyY.js";import{S as K}from"../chunks/XcGac67M.js";function Q(u){let o,s,a,i=u[1]("common.loading")+"",e,t;return o=new K({props:{class:"h-10 w-10 text-primary-600"}}),{c(){M(o.$$.fragment),s=L(),a=k("p"),e=E(i),this.h()},l(r){J(o.$$.fragment,r),s=S(r),a=g(r,"P",{class:!0});var l=b(a);e=x(l,i),l.forEach(p),this.h()},h(){_(a,"class","mt-4 text-gray-600 dark:text-gray-400")},m(r,l){A(o,r,l),v(r,s,l),v(r,a,l),f(a,e),t=!0},p(r,l){(!t||l&2)&&i!==(i=r[1]("common.loading")+"")&&T(e,i)},i(r){t||(P(o.$$.fragment,r),t=!0)},o(r){w(o.$$.fragment,r),t=!1},d(r){r&&(p(s),p(a)),z(o,r)}}}function R(u){let o,s,a,i,e,t=u[1]("auth.backToLogin")+"",r,l;return{c(){o=k("div"),s=k("p"),a=E(u[0]),i=L(),e=k("p"),r=E(t),l=E("..."),this.h()},l(c){o=g(c,"DIV",{class:!0});var m=b(o);s=g(m,"P",{class:!0});var n=b(s);a=x(n,u[0]),n.forEach(p),i=S(m),e=g(m,"P",{class:!0});var d=b(e);r=x(d,t),l=x(d,"..."),d.forEach(p),m.forEach(p),this.h()},h(){_(s,"class","text-red-700 dark:text-red-300"),_(e,"class","mt-2 text-sm text-gray-500 dark:text-gray-400"),_(o,"class","bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg p-6 max-w-md text-center")},m(c,m){v(c,o,m),f(o,s),f(s,a),f(o,i),f(o,e),f(e,r),f(e,l)},p(c,m){m&1&&T(a,c[0]),m&2&&t!==(t=c[1]("auth.backToLogin")+"")&&T(r,t)},i:D,o:D,d(c){c&&p(o)}}}function U(u){let o,s,a,i,e,t,r;document.title=o=u[1]("common.loading");const l=[R,Q],c=[];function m(n,d){return n[0]?0:1}return e=m(u),t=c[e]=l[e](u),{c(){s=L(),a=k("div"),i=k("div"),t.c(),this.h()},l(n){V("svelte-yqsgsx",document.head).forEach(p),s=S(n),a=g(n,"DIV",{class:!0});var h=b(a);i=g(h,"DIV",{class:!0});var j=b(i);t.l(j),j.forEach(p),h.forEach(p),this.h()},h(){_(i,"class","flex flex-col items-center"),_(a,"class","min-h-screen flex items-center justify-center bg-gray-50 dark:bg-gray-900")},m(n,d){v(n,s,d),v(n,a,d),f(a,i),c[e].m(i,null),r=!0},p(n,[d]){(!r||d&2)&&o!==(o=n[1]("common.loading"))&&(document.title=o);let h=e;e=m(n),e===h?c[e].p(n,d):(N(),w(c[h],1,1,()=>{c[h]=null}),$(),t=c[e],t?t.p(n,d):(t=c[e]=l[e](n),t.c()),P(t,1),t.m(i,null))},i(n){r||(P(t),r=!0)},o(n){w(t),r=!1},d(n){n&&(p(s),p(a)),c[e].d()}}}function X(u,o,s){let a,i;C(u,G,t=>s(1,a=t)),C(u,B,t=>s(2,i=t));let e="";return q(async()=>{const t=i.url.searchParams,r=t.get("code"),l=t.get("error");if(l){s(0,e=l),setTimeout(()=>y("/login"),3e3);return}if(!r){s(0,e=a("auth.socialLoginError")),setTimeout(()=>y("/login"),3e3);return}history.replaceState(null,"","/auth/callback");try{const c=await fetch("/api/v1/auth/exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:r})});if(!c.ok){s(0,e=a("auth.socialLoginError")),setTimeout(()=>y("/login"),3e3);return}const m=await c.json();H.setAccessToken(m.access_token),await F.initialize();const n=m.redirect&&m.redirect.startsWith("/")&&!m.redirect.startsWith("//")?m.redirect:"/dashboard";await y(n)}catch{s(0,e=a("auth.socialLoginError")),setTimeout(()=>y("/login"),3e3)}}),[e,a]}class ne extends O{constructor(o){super(),W(this,o,X,U,I,{})}}export{ne as component};

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.