summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/7241.dae29a2c5dba9d8b64c6.chunk.js
blob: d90f811caaff83b350c7f790988fd73616ded401 (plain)
1
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="765b3f1b-34d7-4268-a871-4d01bee4ba0a",e._sentryDebugIdIdentifier="sentry-dbid-765b3f1b-34d7-4268-a871-4d01bee4ba0a")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"6845f9ce010d5a446e5d4a40f17204cb8341a07a"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[7241],{1178:function(e,n,t){t.r(n),t.d(n,{MagicLinkSent:function(){return m}});t(74916),t(64765);var i=t(67294),r=t(71893),o=t(89250),a=t(64969),c=t(15794),d=t(8360),l=t(91940),u=t(87562),f=t(1043),s=(0,r.default)(a.Text).attrs({role:"button"}).withConfig({displayName:"magicLinkSent__ButtonText",componentId:"sc-ua6kmo-0"})(["cursor:pointer;"]),m=function(){var e=(0,o.TH)(),n=e.search,t=e.state,r=((void 0===t?{}:t)||{}).email,c=window.location.hash,m=(0,f.iM)(),g=(0,i.useCallback)((function(){var e=encodeURIComponent((0,u.$)("/sign-in".concat(n),c)),t=encodeURIComponent((0,u.$)("/sign-up/verify".concat(n),c));m({email:r,redirectURI:e,registerURI:t,resend:!0})}),[r]);return i.createElement(l.Z,{"data-testid":"magicLinkSent"},i.createElement(a.H1,{textAlign:"center"},"Check your email!"),i.createElement(a.Flex,{column:!0,padding:[0,0,8,0],gap:8,justifyContent:"between",alignItems:"center",border:{side:"bottom",color:"disabled"}},i.createElement(a.Flex,{column:!0,gap:1,alignItems:"center"},i.createElement(a.TextBig,{textAlign:"center"},"We have sent an email to ",i.createElement(a.TextBig,{strong:!0},!!r&&r),"."),i.createElement(a.TextBig,{textAlign:"center"},"Please find this email (check your spam folder too) and click the button there to continue.")),i.createElement(a.Text,{textAlign:"center"},"Didn't receive it?"," ",i.createElement(s,{onClick:g,color:"primary"},"Click here to resend it."))),i.createElement(a.Flex,{column:!0,alignSelf:"center"},i.createElement(d.Z,null)))};n.default=(0,c.k)(m,"light")},76362:function(e,n,t){t.d(n,{S1:function(){return o},ZT:function(){return i},ae:function(){return c},jU:function(){return a},on:function(){return r}});var i=function(){};function r(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];e&&e.addEventListener&&e.addEventListener.apply(e,n)}function o(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];e&&e.removeEventListener&&e.removeEventListener.apply(e,n)}var a="undefined"!==typeof window,c="undefined"!==typeof navigator},94829:function(e,n,t){var i=t(67294),r=t(76362);n.Z=function(e,n){var t=(0,i.useState)(function(e,n){return void 0!==n?n:!!r.jU&&window.matchMedia(e).matches}(e,n)),o=t[0],a=t[1];return(0,i.useEffect)((function(){var n=!0,t=window.matchMedia(e),i=function(){n&&a(!!t.matches)};return t.addListener(i),a(t.matches),function(){n=!1,t.removeListener(i)}}),[e]),o}}}]);