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