1import{_ as x}from"./3EBg3iUg.js";import{_ as y}from"./BCNY_h_o.js";import{I as h}from"./BrN94bNG.js";import{I as b}from"./DlZaLOuR.js";import{f as g,u as w,e as L,c as I,r as v,q as m,s as D,t as u,x as T,y as i,v as e,z as f,B as r,C as a,D as n,G as B}from"./D5MLA-hU.js";import{u as S}from"./CbqWd3-v.js";import"./B1_oImu8.js";import"./Dvq-jn9A.js";import"./D_rngVSp.js";import"./DA7qIMyu.js";import"./DeIXQDC2.js";import"./DnT6CYIS.js";import"./GhFrNfLP.js";import"./BsSRCWlq.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new s.Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="2b0d8c75-a15e-4b5f-93d8-edab6224224a",s._sentryDebugIdIdentifier="sentry-dbid-2b0d8c75-a15e-4b5f-93d8-edab6224224a")}catch{}})();const q={key:0,class:"flex flex-col items-center py-10 text-center"},C={class:"display mt-5 text-2xl text-ink-900"},N={class:"mt-2 text-sm text-slate-500"},A={key:1,class:"flex flex-col items-center py-10 text-center"},V={class:"grid h-14 w-14 place-items-center rounded-full bg-red-50 text-red-500"},E={class:"display mt-5 text-2xl text-ink-900"},M={class:"mt-2 text-sm text-slate-500"},Z=g({__name:"masuk-link",setup(s){const{t}=w(),o=L();S({title:t("masukLink.seoTitle"),description:t("masukLink.seoDesc"),robots:"noindex, nofollow"});const{loginWithMagicLink:p}=I(),c=String(o.query.token||""),l=String(o.query.email||"");(o.query.token||o.query.email)&&window.history.replaceState(window.history.state,"",window.location.pathname);const d=T(!1);return v(async()=>{if(!c||!l){await m("/masuk");return}try{await p(l,c),await m("/akun")}catch{d.value=!0}}),(z,G)=>{const _=x,k=y;return i(),D(k,null,{default:u(()=>[e(d)?(i(),f("div",A,[a("span",V,[r(e(h),{class:"h-7 w-7"})]),a("h1",E,n(e(t)("masukLink.failedTitle")),1),a("p",M,n(e(t)("masukLink.failedBody")),1),r(_,{to:"/masuk",class:"mt-6 rounded-full bg-brand-500 px-6 py-3 text-sm font-semibold text-white transition-colors hover:bg-brand-600"},{default:u(()=>[B(n(e(t)("masukLink.backToLogin")),1)]),_:1})])):(i(),f("div",q,[r(e(b),{class:"h-9 w-9 animate-spin text-brand-500"}),a("h1",C,n(e(t)("masukLink.verifying")),1),a("p",N,n(e(t)("masukLink.wait")),1)]))]),_:1})}}});
1export{Z as default};
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.