1import{f as y,u as I,a as B,e as C,c as D,r as S,q as T,z as r,C as s,B as o,v as t,D as a,G as l,t as f,x as q,_ as A,y as d}from"./D5MLA-hU.js";import{_ as L}from"./3EBg3iUg.js";import{I as N}from"./BrN94bNG.js";import{I as V}from"./BnqRJifm.js";import{I as g}from"./pnh8EOCJ.js";import{I as E}from"./DlZaLOuR.js";import{I as x}from"./C6ZGBDap.js";import{u as H}from"./CbqWd3-v.js";import"./B1_oImu8.js";import"./D_rngVSp.js";import"./BsSRCWlq.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="89f642fa-460a-4094-a5fc-f8a18427ab1b",n._sentryDebugIdIdentifier="sentry-dbid-89f642fa-460a-4094-a5fc-f8a18427ab1b")}catch{}})();const P={class:"relative isolate flex min-h-[70vh] items-center overflow-hidden bg-[#f6f6fb] px-6 py-24 sm:py-28"},R={class:"relative mx-auto w-full max-w-4xl"},z={class:"liquid-glass rounded-[2rem] p-8 sm:p-12"},G={key:0,class:"flex flex-col items-center py-10 text-center"},M={class:"display mt-5 text-2xl text-ink-900"},j={key:1,class:"flex flex-col items-center gap-8 lg:flex-row lg:gap-12"},F={class:"text-center lg:text-left"},J={class:"display text-3xl leading-tight text-ink-900 sm:text-4xl"},K={class:"text-brand-600"},O={class:"mt-4 text-lg font-semibold text-ink-900"},Q={class:"mt-2 text-base text-slate-600"},U={class:"mt-5 text-sm text-slate-500"},W={key:2,class:"flex flex-col items-center py-6 text-center"},X={class:"grid h-14 w-14 place-items-center rounded-full bg-red-50 text-red-500"},Y={class:"display mt-5 text-2xl text-ink-900"},Z={class:"mt-2 max-w-md text-sm text-slate-500"},$={key:3,class:"flex flex-col items-center py-6 text-center"},tt={class:"grid h-14 w-14 place-items-center rounded-full bg-brand-50 text-brand-500"},et={class:"display mt-5 text-2xl text-ink-900"},st={class:"mt-2 max-w-md text-sm text-slate-500"},xt=y({__name:"aktivasi",setup(n){const{t:e}=I(),p=B(),c=C();H({title:e("aktivasi.seoTitle"),description:e("aktivasi.seoDesc"),robots:"noindex, nofollow"});const{activate:v,isLoggedIn:k}=D(),h=String(c.query.token||""),_=String(c.query.email||"");(c.query.token||c.query.email)&&window.history.replaceState(window.history.state,"",window.location.pathname);const i=q("loading");return S(async()=>{if(!h||!_){if(k.value){i.value="alreadyActive";return}await T("/masuk");return}try{await v(_,h),i.value="ok"}catch(b){i.value=b.status===409?"alreadyActive":"failed"}}),(b,u)=>{const w=A,m=L;return d(),r("section",P,[u[0]||(u[0]=s("div",{class:"pointer-events-none absolute -left-24 top-16 h-72 w-72 rounded-full bg-brand-300/30 blur-3xl"},null,-1)),u[1]||(u[1]=s("div",{class:"pointer-events-none absolute -right-20 bottom-8 h-80 w-80 rounded-full bg-brand-200/40 blur-3xl"},null,-1)),o(t(x),{class:"pointer-events-none absolute left-[12%] top-[22%] h-5 w-5 text-brand-400/50"}),o(t(x),{class:"pointer-events-none absolute right-[14%] top-[28%] h-4 w-4 text-brand-300/60"}),o(t(x),{class:"pointer-events-none absolute right-[22%] bottom-[18%] h-6 w-6 text-brand-400/40"}),s("div",R,[s("div",z,[t(i)==="loading"?(d(),r("div",G,[o(t(E),{class:"h-9 w-9 animate-spin text-brand-500"}),s("h1",M,a(t(e)("aktivasi.verifying")),1)])):t(i)==="ok"?(d(),r("div",j,[o(w,{src:t(p)("/illustrations/activation-success.png"),alt:"",width:"612",height:"408",class:"w-56 shrink-0 sm:w-64 lg:w-72"},null,8,["src"]),s("div",F,[s("h1",J,[l(" ð "+a(t(e)("aktivasi.okHeadingPre"))+" ",1),s("span",K,a(t(e)("aktivasi.okHeadingAccent")),1)]),s("p",O,a(t(e)("aktivasi.okSubtitle")),1),s("p",Q,a(t(e)("aktivasi.okBody")),1),o(m,{to:"/masuk",class:"mt-7 inline-flex items-center gap-1.5 rounded-full bg-brand-500 px-8 py-3.5 text-base font-semibold text-white shadow-lg shadow-brand-500/25 transition-all duration-300 hover:bg-brand-600 hover:shadow-brand-600/30"},{default:f(()=>[l(a(t(e)("aktivasi.login"))+" ",1),o(t(g),{class:"h-4 w-4"})]),_:1}),s("p",U,[l(a(t(e)("aktivasi.help"))+" ",1),o(m,{to:"/kontak",class:"font-semibold text-brand-600 hover:underline"},{default:f(()=>[l(a(t(e)("aktivasi.helpLink")),1)]),_:1})])])])):t(i)==="failed"?(d(),r("div",W,[s("span",X,[o(t(N),{class:"h-7 w-7"})]),s("h1",Y,a(t(e)("aktivasi.failedTitle")),1),s("p",Z,a(t(e)("aktivasi.failedBody")),1),o(m,{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:f(()=>[l(a(t(e)("aktivasi.login")),1)]),_:1})])):(d(),r("div",$,[s("span",tt,[o(t(V),{class:"h-7 w-7"})]),s("h1",et,a(t(e)("aktivasi.alreadyTitle")),1),s("p",st,a(t(e)("aktivasi.alreadyBody")),1),o(m,{to:"/masuk",class:"mt-6 inline-flex items-center gap-1.5 rounded-full bg-brand-500 px-8 py-3.5 text-base font-semibold text-white shadow-lg shadow-brand-500/25 transition-all duration-300 hover:bg-brand-600 hover:shadow-brand-600/30"},{default:f(()=>[l(a(t(e)("aktivasi.login"))+" ",1),o(t(g),{class:"h-4 w-4"})]),_:1})]))])])])}}});
1export{xt 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.