summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/241.9c26252244ccad9ac280.chunk.js
blob: 499ed4aa437ab4140cc7bdc59bd80303e7ecd7e8 (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]="8eb15d28-ec6a-4c58-a08f-ab953f1c39b6",e._sentryDebugIdIdentifier="sentry-dbid-8eb15d28-ec6a-4c58-a08f-ab953f1c39b6")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"d3c83511ea495cef1d9f8179d5492b454e88bcc8"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[241],{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(60677),o=t(89250),a=t(15557),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}}}]);