1import{D as y,v as w,u as v,p as a,q as e,w as o,x as i}from"./zMQZ3vqD.js";import{C as k}from"./CHXTyely.js";import{a8 as b,t as z,aI as E,G as T,aJ as j,z as B}from"./BWeJ4otB.js";import"./BSc7nAdZ.js";import"./hle-0Evi.js";import"./dlecG_21.js";import"./DiqFlZAK.js";import"./CxjJ0NBy.js";import"./C3Y7KbLQ.js";import"./apHXcpZ8.js";const C="/7hbDdsiY.gif",I=new k,S="M1366.5,724.74s-37.5,15.73-426-7.23c-209-9.58-397-2.9-518,1.81C157.5,729.62,0,709,0,709V0H1366.5Z",W=i(o,{target:"eyd6aem3"})("position:relative;min-height:307px;width:100%;background-position:50% 100%;background-size:cover;color:#fff;padding:40px 20px 60px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;@media screen and (max-width: 987px){min-height:293px;}@media screen and (max-width: 767px){min-height:269px;background-color:",({theme:t})=>t.palette.primary.dark,";}"),M=i(o,{target:"eyd6aem2"})({name:"z1k7ap",styles:"width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;margin-top:35px;@media screen and (max-width: 767px){margin-top:60px;}"}),P=i("h1",{target:"eyd6aem1"})({name:"1bx28qa",styles:"margin-top:24px;font-weight:400;font-size:60px;line-height:70px;@media screen and (max-width: 900px){font-size:46px;line-height:56px;}@media screen and (max-width: 770px){font-size:42px;line-height:52px;}@media screen and (max-width: 480px){font-size:38px;line-height:50px;}"}),p=i("p",{target:"eyd6aem0"})("font-size:18px;color:",({theme:t})=>t.palette.primary.dark,";line-height:30px;@media screen and (max-width: 770px){font-size:16px;}"),_=()=>{const t=y(),{palette:d}=w(),{logoIconWhite:l,companyName:n}=b(),x=v(),s=z(),[h,g]=a.useState(!1),r=!!I.get("changeUserEmailProcess"),u=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1366.5 730"> <path fill="${d.primary.dark}" d="${S}" /> </svg> `,c=a.useMemo(()=>{switch(s.message){case"Email successfully verified":return{type:"success",message:"Your email has been successfully verified."};case"Email already verified":return{type:"success",message:"Email already verified."};default:return{type:"error",message:"The confirmation link is invalid or has expired."}}},[s.message]),m=()=>{g(!0),j("changeUserEmailProcess"),x(r?"/dashboard/this-month":"/contacts/connections"),s.message&&t(B({type:c.type,message:c.message,model:"alert"}))};return a.useEffect(()=>{const f=E(5e3,m);return()=>{clearTimeout(f)}},[]),e.jsxs(o,{children:[e.jsxs(W,{sx:{backgroundImage:`url("data:image/svg+xml, ${encodeURIComponent(u)}")`},children:[e.jsx("img",{src:l,height:"90px",alt:"logo"}),e.jsxs(P,{children:["Welcome to ",n]})]}),e.jsxs(M,{children:[e.jsx(p,{children:r||s!=null&&s.message?"Thank you for verifying your email!":"Thank you for registering!"}),e.jsx(p,{children:"You'll be redirected back to the app in a few seconds."}),e.jsx("img",{src:C,width:"50",height:"50",alt:""}),h&&e.jsxs(T,{onClick:m,children:["Take me to the ",n]})]})]})};export{_ as Welcome};
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.