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]="c6dddaf5-23bc-4c37-bc1c-836790fcb1b0",e._sentryDebugIdIdentifier="sentry-dbid-c6dddaf5-23bc-4c37-bc1c-836790fcb1b0")}catch(e){}("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:{}).SENTRY_RELEASE={id:"73b76b0b53402b174350d469272adf0bbf58506c"};(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[8399],{3203:(e,a,n)=>{n.d(a,{A:()=>s});var t=n(96540),i=n(3319),c=n(74848);const l=e=>a=>{let{callback:n,feature:l,isStart:d,isSuccess:s,isFailure:o,eventReason:r,payload:u={},...f}=a;const{sendLog:b,isReady:g}=(0,i.A)(),h=(0,t.useCallback)((e=>{const a=f[n],t={feature:l,isStart:d,isSuccess:s,isFailure:o,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),b(t,!0)}),[n,b,g,u,f]),k=(0,t.useMemo)((()=>({...f,[n]:h})),[f,n,h]);return(0,c.jsx)(e,{...k})};var d=n(81691);const s=e=>a=>{let{payload:n={},...t}=a;const i=l(e);return(0,c.jsx)(i,{...t,callback:"onClick",payload:{...n,action:d.o1.buttonClicked}})}},8399:(e,a,n)=>{n.r(a),n.d(a,{MagicLinkSent:()=>y,default:()=>m});var t=n(96540),i=n(33185),c=n(97665),l=n(42653),d=n(42660),s=n(64391),o=n(87875),r=n(3575),u=n(26363),f=n(10444),b=n(3203),g=n(60908),h=n(74848);const k=(0,i.default)(l.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,c.zy)(),{email:d}=i||{},b=a||d,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:b,redirectURI:e,registerURI:a,resend:!0})}),[b]);return(0,h.jsx)(g.Ay,{feature:"MagicLinkSent",email:b,children:(0,h.jsx)(s.A,{"data-testid":"magicLinkSent",isScreenSmall:m,children:(0,h.jsxs)(l.Flex,{column:!0,gap:4,children:[(0,h.jsx)(o.D7,{children:"Check your email!"}),(0,h.jsxs)(l.Flex,{column:!0,padding:[0,0,8,0],gap:8,justifyContent:"between",alignItems:"center",children:[(0,h.jsxs)(l.Flex,{column:!0,gap:1,alignItems:"center",children:[(0,h.jsxs)(o.D7,{children:["We have sent an email to ",(0,h.jsx)(o.D7,{children:!!b&&b}),"."]}),(0,h.jsx)(o.D7,{children:"Please find this email (check your spam folder too) and click the button there to continue."})]}),(0,h.jsxs)(l.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,d.g)(y,"dark")}}]);