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