try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b031cde9-1a53-4a94-9c7c-2e470c37a923",e._sentryDebugIdIdentifier="sentry-dbid-b031cde9-1a53-4a94-9c7c-2e470c37a923")}catch(e){}("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:{}).SENTRY_RELEASE={id:"b0610930f891423c3567547ad7119d4cfa1f1e68"};(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[8399],{3203:(e,t,a)=>{a.d(t,{A:()=>r});var n=a(58168),l=a(96540),c=a(3319);const o=e=>t=>{let{callback:a,feature:n,isStart:o,isSuccess:i,isFailure:r,eventReason:d,payload:s={},...u}=t;const{sendLog:f,isReady:m}=(0,c.A)(),g=(0,l.useCallback)((e=>{const t=u[a],l={feature:n,isStart:o,isSuccess:i,isFailure:r,eventReason:d,...s,...u["data-ga"]?{dataGa:u["data-ga"]}:{},...u.dataGa?{dataGa:u.dataGa}:{},...u["data-track"]?{dataTrack:u["data-track"]}:{},...u.label?{label:u.label}:{}};"function"===typeof t&&t(e),f(l,!0)}),[a,f,m,s,u]),b=(0,l.useMemo)((()=>({...u,[a]:g})),[u,a,g]);return l.createElement(e,b)};var i=a(81691);const r=e=>t=>{let{payload:a={},...c}=t;const r=o(e);return l.createElement(r,(0,n.A)({},c,{callback:"onClick",payload:{...a,action:i.o1.buttonClicked}}))}},8399:(e,t,a)=>{a.r(t),a.d(t,{MagicLinkSent:()=>p,default:()=>y});var n=a(96540),l=a(33185),c=a(90328),o=a(10302),i=a(42660),r=a(64391),d=a(87875),s=a(3575),u=a(26363),f=a(10444),m=a(3203),g=a(60908);const b=(0,l.default)(o.Text).attrs({role:"button"}).withConfig({displayName:"magicLinkSent__ButtonText",componentId:"sc-ua6kmo-0"})(["cursor:pointer;"]),k=(0,m.A)(b),p=()=>{const{searchParams:e}=new URL(window.location.href),t=e?.get("email"),{search:a,state:l={}}=(0,c.zy)(),{email:i}=l||{},m=t||i,b=window.location.hash,p=(0,u.Js)(),y=(0,f.J)(),h=(0,n.useCallback)((()=>{const e=encodeURIComponent((0,s.V)(`/sign-in${a}`,b)),t=encodeURIComponent((0,s.V)(`/sign-up/verify${a}`,b));p({email:m,redirectURI:e,registerURI:t,resend:!0})}),[m]);return n.createElement(g.Ay,{feature:"MagicLinkSent",email:m},n.createElement(r.A,{"data-testid":"magicLinkSent",isScreenSmall:y},n.createElement(o.Flex,{column:!0,gap:4},n.createElement(d.D7,null,"Check your email!"),n.createElement(o.Flex,{column:!0,padding:[0,0,8,0],gap:8,justifyContent:"between",alignItems:"center"},n.createElement(o.Flex,{column:!0,gap:1,alignItems:"center"},n.createElement(d.D7,null,"We have sent an email to ",n.createElement(d.D7,null,!!m&&m),"."),n.createElement(d.D7,null,"Please find this email (check your spam folder too) and click the button there to continue.")),n.createElement(o.Text,{color:"bright"},"Didn't receive it?"," ",n.createElement(k,{onClick:h,color:"primary","data-ga":"magicLikSent::click-resent::check-email-view"},"Click here to resend it."))))))},y=(0,i.g)(p,"dark")}}]);