1import{a as H}from"./DLZ6yXDV.js";import{di as S,bo as E,bO as $,bc as D,bn as V,bU as M,bV as R,bZ as B,be as p,bf as g,bj as a,bk as b,bi as n,bm as w,bg as y,bl as I,by as A,bu as N,bP as i,eH as j,bX as F,bW as P,bd as U,bI as X,bJ as J,c6 as O,b$ as W}from"./Dus7iMKz.js";import{C as Z}from"./NtVjWzlQ.js";import{i as C}from"./CHdgm6zm.js";import{A as q}from"./C8IAAaVy.js";import{_ as L}from"./CDt5dHDM.js";import{_ as z}from"./BS1ZIRV1.js";import"./YQ4jXBDF.js";import"./Bii2ooBM.js";import"./BdarT91v.js";(function(){try{var c=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new c.Error().stack;o&&(c._sentryDebugIds=c._sentryDebugIds||{},c._sentryDebugIds[o]="69129d35-7ef7-485e-8677-b3444b8602b1",c._sentryDebugIdIdentifier="sentry-dbid-69129d35-7ef7-485e-8677-b3444b8602b1")}catch{}})();const G=S("/alert.svg"),K={class:"container"},Q={class:"header"},Y={class:"description"},ee={class:"text-description"},te={class:"text-description"},se={class:"buttons"},T=2,ae={__name:"LoginPartsExpiredToken",setup(c){const o=$(),{t:s}=D(),k=V(),f=M.useToast({position:"bottom",duration:3e3}),r=i(null),l=i(!1),d=i(!1),u=i(0),_=i(""),h=P(()=>u.value>=T),x=R("generateCaptcha");async function t(){const e=await j(r.value);e&&e.status===-1&&e.message==="limit-exceeded"&&(_.value=e.email,u.value=T)}async function v(){d.value=!0;try{await x();const e=await F({resetToken:r.value,captcha:o.$state.captcha,fingerprint:o.fingerprintData?.visitor_id});if(u.value+=1,e.status===-1&&e.message==="limit-exceeded"||e.status===429){u.value=T,_.value=e.email;return}await t(),f.success(s("login.confirm-email.expired.success"))}catch(e){if(C(e))return;if(e.response?.status===403){f.error(s("login.confirm-email.expired.failure")),l.value=!0;return}f.error(s("login.confirm-email.general-error"))}finally{d.value=!1}}return B(async()=>{if(typeof window<"u"){r.value=window.location.hash.split("#")[1],r.value.includes("?")&&(r.value=r.value.split("?")[0]);try{await t()}catch(e){if(C(e))return;f.error(s("login.confirm-email.general-error"))}}}),(e,m)=>(p(),g("div",K,[a("div",Q,[m[1]||(m[1]=a("img",{src:G,alt:"expired-link"},null,-1)),a("h1",null,b(n(s)("login.confirm-email.expired.linkExpired")),1)]),a("div",Y,[a("p",ee,b(n(s)("login.confirm-email.expired.firstDescription")),1),a("p",te,[w(b(n(s)("login.confirm-email.expired.secondDescription"))+" ",1),m[2]||(m[2]=a("a",{class:"email",href:"mailto:[email protected]"},"[email protected]",-1))])]),a("div",se,[y(L,{primary:!0,long:!0,onClick:m[0]||(m[0]=()=>n(k).push("/login"))},{default:I(()=>[w(b(n(s)("login.confirm-email.expired.signIn")),1)]),_:1}),y(L,{white:"","black-text":"","gray-border":"",loader:d.value,disabled:l.value||n(h),onClick:v},{default:I(()=>[w(b(n(s)("login.confirm-email.expired.sendNewLink")),1)]),_:1},8,["loader","disabled"])]),a("div",null,[n(h)?(p(),A(z,{key:0,style:{"justify-content":"flex-start"},delay:60,email:_.value,category:"email-not-received",type:"reset-password"},null,8,["email"])):N("",!0)])]))}},ne=E(ae,[["__scopeId","data-v-c1937844"]]),ie={class:"auth-page"},oe={class:"auth-container"},re={class:"auth-card"},ce={key:0,src:H,alt:"CV",class:"cv-icon"},le={key:1},de={__name:"token-verification",setup(c){const{t:o}=D(),s=V(),k=$(),f=R("generateCaptcha"),r=i(null),l=i(!0),d=i(!1),u=i(!1);U({title:o("head.login.title"),meta:[{hid:"description",name:"description",content:o("head.login.description")}]});function _(t){l.value=t}function h(){const t=window.location.hash.split("#")[1];return t.includes("?")?t.split("?")[0]:t}async function x(){d.value=!0;try{const t=h();await f();const v=await W(t,k.captcha);u.value=!!v?.isBusiness}catch(t){if(C(t))return;if(t.response?.data?.message==="code-expired-or-used"){l.value=!1;return}await s.push("/")}finally{d.value=!1}}return B(async()=>{r.value=window.location.hash.split("/")[1],await x()}),(t,v)=>(p(),g("div",ie,[y(q,{"button-text":t.$t("c2.companyHeader.logIn"),"button-link":"/login"},null,8,["button-text"]),a("main",oe,[a("div",re,[l.value?(p(),g("img",ce)):N("",!0),d.value?(p(),g("div",le,[(p(),g(X,null,J(4,e=>y(n(Z),{key:e,height:"80px",width:"100%"})),64))])):l.value?O(t.$slots,"default",{key:3,setLinkValid:_,isBusinessAccount:u.value},void 0,!0):(p(),A(ne,{key:2}))])])]))}},ke=E(de,[["__scopeId","data-v-3b99ded8"]]);export{ke 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.