1import{_ as A}from"./B9RjQ1_e.js";import{_ as B}from"./DDuywErb.js";import{k as p,D as I,d as C,A as T,I as h,ac as u,c as g,j as l,w as a,u as s,aq as d,o as m,f as _,i as w,g as i,v,t as j,s as S,_ as V}from"./CUKIzEKZ.js";import{e as E}from"./BvfqmdQ6.js";import{u as N}from"./BFvtcCya.js";import"./Dy0uSt_h.js";import"./BF_oWxoP.js";import"./NKFQzdD5.js";import"./Ck9ho4uj.js";function q(x=null){const n=p(x),t=p(null),o=e=>{n.value=null,t.value=e};return{transitionTo:o,afterLeave:()=>{n.value=t.value,t.value=null},is:e=>n.value===e,current:n,handle:e=>{I(n,async()=>{var c;if(n.value!==null){const r=await((c=e[n.value])==null?void 0:c.call(e));r!==void 0&&o(r)}},{immediate:!0})}}}const D={class:"flex w-full justify-center items-center min-h-screen text-[#5A6375]"},G={key:0,class:"flex items-center justify-center w-32"},H={class:"text-center mt-2"},R={class:"font-semibold"},W=C({__name:"invite",setup(x){const{t:n}=T(),t=q(0),o=h().query.token,f=p(null),k=()=>{o&&localStorage.setItem("glimpse_referral_code",o)};return N({title:n("extension-invite")}),u({meta:[{name:"robots",content:"noindex"}]}),t.handle({0:async()=>{u({title:n("loading")});try{f.value=await E.getInvitation({token:o}),t.transitionTo(2)}catch{t.transitionTo(1)}},1:()=>{u({title:n("invalid-invitation")})},2:()=>{u({title:n("redeem-invitation")})}}),(L,e)=>{const c=A,r=B,b=S;return m(),g("div",D,[l(d,{onAfterLeave:s(t).afterLeave},{default:a(()=>[s(t).is(0)?(m(),g("div",G,[l(c,{width:"32"})])):_("",!0)]),_:1},8,["onAfterLeave"]),l(d,{name:"fade",appear:"",onAfterLeave:s(t).afterLeave},{default:a(()=>[s(t).is(1)?(m(),w(r,{key:0},{default:a(()=>e[0]||(e[0]=[i("h1",{class:"text-2xl font-semibold text-center text-[#394253]"}," Invalid Invitation ",-1),i("p",{class:"text-center mt-2"},"We couldnât verify invitation token.",-1)])),_:1,__:[0]})):_("",!0)]),_:1},8,["onAfterLeave"]),l(d,{name:"fade",appear:"",onAfterLeave:s(t).afterLeave},{default:a(()=>[s(t).is(2)?(m(),w(r,{key:0},{default:a(()=>{var y;return[e[5]||(e[5]=i("h1",{class:"text-2xl font-semibold text-center text-[#394253]"}," Welcome! ",-1)),i("p",H,[i("strong",R,j((y=f.value)==null?void 0:y.email),1),e[1]||(e[1]=v(" invited you ")),e[2]||(e[2]=i("br",null,null,-1)),e[3]||(e[3]=v("to try the Glimpse extension "))]),l(b,{as:"a",href:"https://chrome.google.com/webstore/detail/glimpse/ocmojhiloccgbpjnkeiooioedaklapap",class:"mt-8 w-full h-14 tracking-wider uppercase",onClick:k},{default:a(()=>e[4]||(e[4]=[v(" Get Extension ")])),_:1,__:[4]})]}),_:1,__:[5]})):_("",!0)]),_:1},8,["onAfterLeave"])])}}}),X=V(W,[["__scopeId","data-v-1b8a0bc9"]]);export{X 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.