"use strict";(self.webpackChunkfunblocks=self.webpackChunkfunblocks||[]).push([[2882],{42882:(e,t,i)=>{i.r(t),i.d(t,{default:()=>g});var n=i(96540),a=i(61225),l=i(24180),s=i(6442),r=i(14073),o=i(14977),c=i(65834),d=i(81925),u=i(72453),m=i(13718),x=i(29970),f=i(74848);const g=()=>{const e=(0,s.A)(),t=(0,a.useDispatch)(),i=(0,l.W6)(),[g,p]=(0,n.useState)(),h=(0,a.useSelector)(e=>e.loginIn.user);return(0,n.useEffect)(()=>{h.activated&&i.push("/home")},[h.activated]),(0,n.useEffect)(()=>{x.Ay.send({hitType:"pageview",page:"/activate",title:"Activate"})},[]),(0,f.jsx)("div",{className:"full-height",style:{display:"flex",flexDirection:"column",width:"100%",alignItems:"center",justifyContent:"center",background:"#f5f5f5"},children:(0,f.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[(0,f.jsx)(o.A,{style:{backgroundColor:"white",padding:20,alignItems:"center",alignContent:"center",display:"flex",flexDirection:"column"},sx:{width:420},children:(0,f.jsx)(r.A,{gutterBottom:!0,variant:"text",component:"div",children:e.formatMessage({id:"account_not_activated"},{email:h.username})})}),(0,f.jsxs)("div",{style:{backgroundColor:"transparent",flexDirection:"column",padding:20,rowGap:20,alignItems:"center",alignContent:"center",display:"flex"},sx:{width:420},children:[(0,f.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",columnGap:"10px"},children:[(0,f.jsx)(r.A,{gutterBottom:!0,variant:"text",component:"div",children:e.formatMessage({id:"already_activated"})}),(0,f.jsx)(c.A,{variant:"contained",size:"large",onClick:()=>{i.push("/login")},children:e.formatMessage({id:"login"})})]}),(0,f.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",columnGap:"10px"},children:[(0,f.jsx)(r.A,{gutterBottom:!0,variant:"text",component:"div",children:e.formatMessage({id:"no_activation_email"})}),(0,f.jsx)(m.A,{variant:"outlined",size:"large",disabled:g,loading:g,onClick:()=>{p(!0),t(d.MiC({email:h.username},()=>{p(!1)},"activate"))},children:e.formatMessage({id:"resend_activation_email"})})]}),(0,f.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",columnGap:"10px"},children:[(0,f.jsx)(r.A,{gutterBottom:!0,variant:"text",component:"div",children:e.formatMessage({id:"still_no_activation_email"})}),(0,f.jsx)(m.A,{variant:"outlined",size:"large",disabled:g,loading:g,onClick:()=>{t(d.fdN()),setTimeout(()=>{i.push("/register")},200)},children:e.formatMessage({id:"try_another_way"})})]})]}),(0,f.jsx)(u.A,{})]})})}}}]);
//# sourceMappingURL=index.js.map