1import{_ as R,a as S,b as V,c as D}from"./yahoo.DFqkWCQL.js";import{q as A}from"./logo_color.CUZ7h5S8.js";import{u as O,c as T,b as j}from"./index.B2-gWUIW.js";import{d as L,U as N,Q as F,D as B,v as s,c as r,f as t,u as d,S as Q,y,g as o,e as I,F as m,t as p,B as g}from"./vendor-vue.CEmd5qJT.js";import{_ as U}from"./IntercomButton.vue_vue_type_script_setup_true_lang.CcwailzY.js";import{a as Y}from"./oauthReturnPath.CCKw14dV.js";import{ae as M}from"./vendor-ui.DzPeDAfs.js";import"./vendor-utils.CwOt_-fi.js";import"./vendor-analytics.hCElN0WY.js";import"./vendor-sentry.Dm6YYR4_.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};i.SENTRY_RELEASE={id:"661305c1c6f191df2a64859a1419a371ff967e97"};var a=new i.Error().stack;a&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[a]="0e5c4752-1921-46fb-819a-b12fb3cc4956",i._sentryDebugIdIdentifier="sentry-dbid-0e5c4752-1921-46fb-819a-b12fb3cc4956")}catch{}})();const q={class:"bg-[#ECFAFE] min-h-screen h-fit"},G={class:"md:h-screen flex flex-col"},H={class:"flex flex-col items-center h-full"},P={href:"https://qweebi.com",target:"_blank",class:"mb-6 mt-24"},W=["src"],$={class:"w-full max-w-[480px] px-2 flex flex-col items-center justify-center"},K={class:"w-full bg-white border-[1px] shadow-md border-neutral-200 rounded-3xl"},X={key:0,class:"h-96 flex flex-col justify-center items-center"},z={key:1,class:"p-10 flex flex-col justify-start items-center gap-y-6 text-center"},J={key:0,class:"text-center p-4 text-sm bg-green-200/50 text-green-700 border border-green-300 rounded-lg"},Z={key:1,class:"text-center p-4 text-sm bg-red-200/50 text-red-700 border border-red-300 rounded-lg"},ee={class:"flex flex-col justify-start items-center gap-y-2"},te={class:"flex flex-col justify-start items-center gap-y-3 text-base"},oe={key:2,class:"flex flex-col justify-start items-center gap-y-2"},le={class:"text-sm text-neutral-500"},se={key:3,class:"flex flex-col justify-start items-center gap-y-2"},re=30*1e3,ge=L({__name:"VerifyEmailView",setup(i){const a=O(),f=N(),E=T(),{user:l}=F(a),u=g(!1),h=g(!1),v=g(!1),c=g(null);let k=null;const C=async()=>{await a.refreshUserDetails(),(l.value?.emailVerificationStatus==="VERIFIED"||l.value?.emailVerificationStatus==="LEGACY_VERIFIED")&&(v.value=!0,clearInterval(k??void 0))};B(async()=>{u.value=!0,await a.refreshUserDetails(),(l.value.emailVerificationStatus==="VERIFIED"||l.value.emailVerificationStatus==="LEGACY_VERIFIED")&&x(),u.value=!1;const n=f.currentRoute.value.query.verifyError??null;n&&(c.value=n),k=setInterval(()=>{C()},re)});const x=()=>{Y(f,l.value)},_=async()=>{u.value=!0;const n=await E.resendVerificationEmail();if("reason"in n)switch(n.reason){case"USER_ALREADY_VERIFIED":{v.value=!0;break}case"OTHER":{c.value="OTHER";break}}else h.value=!0;u.value=!1},b=()=>{window.Intercom("show")},w=async()=>{u.value=!0,await a.logOut();const n=l.value?.signUpSource;n?await f.push(`/sign-up?sign-up-source=${n}`):await f.push("/sign-up?sign-up-source=dashboard")};return(n,e)=>(s(),r(m,null,[t("main",q,[t("section",G,[t("div",H,[t("a",P,[t("img",{src:d(A),alt:"Qweebi",class:"w-40"},null,8,W)]),e[24]||(e[24]=Q('<div class="flex flex-row space-x-1 mb-6"><div class="w-20 h-1.5 bg-neutral-300/75 rounded-full"><div class="w-20 h-1.5 bg-green-500 rounded-full"></div></div><div class="w-20 h-1.5 bg-neutral-300/75 rounded-full"><div class="w-20 h-1.5 bg-green-500 rounded-full"></div></div><div class="w-20 h-1.5 bg-neutral-300/75 rounded-full"><div class="w-20 h-1.5 bg-green-500 rounded-full"></div></div><div class="w-20 h-1.5 bg-neutral-300/75 rounded-full"></div></div>',1)),t("div",$,[t("div",K,[u.value?(s(),r("div",X,[y(j,{"class-name":"w-12 h-12"})])):(s(),r("div",z,[v.value?(s(),r("div",J,[t("p",null,[e[0]||(e[0]=o(" It appears you've already verified your account. ",-1)),t("button",{class:"font-bold text-green-700 hover:text-green-900 underline",role:"link",onClick:x}," Click here to continue to your dashboard. ")])])):I("",!0),c.value?(s(),r("div",Z,[c.value==="INVALID_OR_EXPIRED_VERIFICATION_TOKEN"?(s(),r(m,{key:0},[t("p",null,[e[1]||(e[1]=o(" The verification token seems to be either invalid or expired. ",-1)),t("button",{class:"font-bold text-blue-500 hover:text-blue-700 underline",role:"link",onClick:x}," Click here to resend the verification email. ")]),t("p",null,[e[2]||(e[2]=o(" If you are still having problems, ",-1)),t("button",{class:"font-semibold text-blue-500 hover:text-blue-700 underline",onClick:b,role:"button"}," contact us"),e[3]||(e[3]=o(". ",-1))])],64)):c.value==="VERIFICATION_MISMATCHED_USER"?(s(),r(m,{key:1},[e[7]||(e[7]=t("p",null,"The verification link seems to be for a different email address.",-1)),t("p",null,[e[4]||(e[4]=o(" Please click the link sent to ",-1)),t("strong",null,p(d(l).email),1)]),t("p",null,[e[5]||
1(e[5]=o(" If you are still having problems, ",-1)),t("button",{class:"font-semibold text-blue-500 hover:text-blue-700 underline",onClick:b,role:"button"}," contact us"),e[6]||(e[6]=o(". ",-1))])],64)):(s(),r(m,{key:2},[t("p",null,[e[8]||(e[8]=o(" We had an issue verifying your email. Please try verifying again by clicking the link in email sent to ",-1)),t("strong",null,p(d(l).email),1),e[9]||(e[9]=o(". ",-1))]),t("p",null,[e[10]||(e[10]=o(" If you are still having problems, ",-1)),t("button",{class:"font-semibold text-blue-500 hover:text-blue-700 underline",onClick:b,role:"button"}," contact us"),e[11]||(e[11]=o(". ",-1))])],64))])):I("",!0),t("div",ee,[y(d(M),{class:"w-8 h-8 stroke-blue-500"}),e[12]||(e[12]=t("h1",{class:"text-2xl text-Qblack-900 font-semibold"},"Verify your email",-1))]),t("div",te,[t("p",null,[e[13]||(e[13]=o(" We've sent a confirmation link to",-1)),e[14]||(e[14]=t("br",null,null,-1)),t("strong",null,p(d(l).email),1)]),e[15]||(e[15]=t("p",null,"Click the link to start using Qweebi.",-1))]),e[23]||(e[23]=t("div",{class:"grid grid-cols-2 gap-x-4 gap-y-4 mt-2"},[t("a",{role:"button",href:"https://mail.google.com/#search/%22Verify%2Byour%2Bemail%2Bto%2Bstart%2Busing%2BQweebi%22",target:"_blank",rel:"noreferrer noopener",class:"px-3 py-2 inline-flex flex-row justify-start items-center gap-x-2 border border-Qblack-100 bg-white rounded-lg text-base font-semibold hover:bg-neutral-50"},[t("img",{src:R,alt:"Logo of Gmail",class:"w-6 h-6 object-contain","aria-hidden":"true"}),o(" Open Gmail ")]),t("a",{role:"button",href:"https://www.icloud.com/mail",target:"_blank",rel:"noreferrer noopener",class:"px-3 py-2 inline-flex flex-row justify-start items-center gap-x-2 border border-Qblack-100 bg-white rounded-lg text-base font-semibold hover:bg-neutral-50"},[t("img",{src:S,alt:"Logo of Apple",class:"w-6 h-6 object-contain","aria-hidden":"true"}),o(" Open Apple Mail ")]),t("a",{role:"button",href:"https://outlook.live.com/mail",target:"_blank",rel:"noreferrer noopener",class:"px-3 py-2 inline-flex flex-row justify-start items-center gap-x-2 border border-Qblack-100 bg-white rounded-lg text-base font-semibold hover:bg-neutral-50"},[t("img",{src:V,alt:"Logo of Outlook",class:"w-6 h-6 object-contain","aria-hidden":"true"}),o(" Open Outlook ")]),t("a",{role:"button",href:"https://mail.yahoo.com/",target:"_blank",rel:"noreferrer noopener",class:"px-3 py-2 inline-flex flex-row justify-start items-center gap-x-2 border border-Qblack-100 bg-white rounded-lg text-base font-semibold hover:bg-neutral-50"},[t("img",{src:D,alt:"Logo of Yahoo",class:"w-6 h-6 object-contain","aria-hidden":"true"}),o(" Open Yahoo ")])],-1)),h.value?(s(),r("div",oe,[e[20]||(e[20]=t("span",{class:"px-3 py-2 rounded-lg text-lg font-bold text-green-400"},"Sent!",-1)),t("p",le,[e[16]||(e[16]=o(" We resent your verification email to ",-1)),t("strong",null,p(d(l).email),1),e[17]||(e[17]=o(". If you don't see it in your inbox, please check your spam folder. If you are still having problems, ",-1)),t("button",{class:"font-semibold text-blue-500 hover:text-blue-700 underline",onClick:b,role:"button"}," contact us"),e[18]||(e[18]=o(", or ",-1)),t("button",{class:"font-semibold text-blue-500 hover:text-blue-700 underline",onClick:w,role:"link"}," sign up again with the correct email address"),e[19]||(e[19]=o(". ",-1))])])):(s(),r("div",se,[t("button",{role:"button",class:"px-3 py-2 rounded-lg text-lg font-bold text-blue-500 hover:text-blue-700",onClick:_}," Send Again "),t("p",{class:"italic text-sm text-neutral-500"},[e[21]||(e[21]=o(" Didn't receive it? Check your spam folder, or ",-1)),t("button",{role:"link",class:"not-italic font-semibold text-blue-500 hover:text-blue-700 underline",onClick:w}," sign up again with the correct email address"),e[22]||(e[22]=o(". ",-1))])]))]))])]),e[25]||(e[25]=t("div",{class:"w-full h-16 md:h-0"},null,-1))])])]),y(U)],64))}});export{ge 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.