summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/241.ceb939c3439523e12eed.chunk.js
blob: fad76092e5b2b662b6818fcd29885a873b90d2a7 (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]="2753835f-fc44-4fdd-9573-0a231829b06f",e._sentryDebugIdIdentifier="sentry-dbid-2753835f-fc44-4fdd-9573-0a231829b06f")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"068845a823c962888381794c354a8f6b6e263031"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[241],{1178:function(e,n,t){t.r(n),t.d(n,{MagicLinkSent:function(){return g}});t(74916),t(64765);var o=t(67294),i=t(60677),c=t(89250),r=t(15557),a=t(15794),u=t(8360),d=t(91940),l=t(87562),f=t(1043),s=(0,i.default)(r.Text).attrs({role:"button"}).withConfig({displayName:"magicLinkSent__ButtonText",componentId:"sc-ua6kmo-0"})(["cursor:pointer;"]),g=function(){var e=(0,c.TH)(),n=e.search,t=e.state,i=((void 0===t?{}:t)||{}).email,a=window.location.hash,g=(0,f.iM)(),m=(0,o.useCallback)((function(){var e=encodeURIComponent((0,l.$)("/sign-in".concat(n),a)),t=encodeURIComponent((0,l.$)("/sign-up/verify".concat(n),a));g({email:i,redirectURI:e,registerURI:t,resend:!0})}),[i]);return o.createElement(d.Z,{"data-testid":"magicLinkSent"},o.createElement(r.H1,{textAlign:"center"},"Check your email!"),o.createElement(r.Flex,{column:!0,padding:[0,0,8,0],gap:8,justifyContent:"between",alignItems:"center",border:{side:"bottom",color:"disabled"}},o.createElement(r.Flex,{column:!0,gap:1,alignItems:"center"},o.createElement(r.TextBig,{textAlign:"center"},"We have sent an email to ",o.createElement(r.TextBig,{strong:!0},!!i&&i),"."),o.createElement(r.TextBig,{textAlign:"center"},"Please find this email (check your spam folder too) and click the button there to continue.")),o.createElement(r.Text,{textAlign:"center"},"Didn't receive it?"," ",o.createElement(s,{onClick:m,color:"primary"},"Click here to resend it."))),o.createElement(r.Flex,{column:!0,alignSelf:"center"},o.createElement(u.Z,null)))};n.default=(0,a.k)(g,"light")},87562:function(e,n,t){t.d(n,{$:function(){return i},G:function(){return c}});t(26699),t(32023),t(92222),t(74916),t(64765);var o=t(58591),i=function(e,n){var t=(0,o.kG)(["expires_at",n]),i=n.includes("join-callback")?decodeURIComponent(t):t;return"".concat(window.location.origin).concat(e,"#").concat(i)},c=function(e,n){var t=window.location,o=t.search,c=t.hash,r=encodeURIComponent(i("/sign-in".concat(o).concat(o.length?"&":"?","oauth=").concat(e,"&"),c)),a=encodeURIComponent(i("/sign-up/verify".concat(o).concat(o.length?"&":"?","oauth=").concat(e,"&"),c));return"/api/v2/auth/account/".concat(e,"?redirect_uri=").concat(r,"&register_uri=").concat(a).concat(n?"&is_unverified_registration=true":"")}},76362:function(e,n,t){t.d(n,{S1:function(){return c},ZT:function(){return o},ae:function(){return a},jU:function(){return r},on:function(){return i}});var o=function(){};function i(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];e&&e.addEventListener&&e.addEventListener.apply(e,n)}function c(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];e&&e.removeEventListener&&e.removeEventListener.apply(e,n)}var r="undefined"!==typeof window,a="undefined"!==typeof navigator},94829:function(e,n,t){var o=t(67294),i=t(76362);n.Z=function(e,n){var t=(0,o.useState)(function(e,n){return void 0!==n?n:!!i.jU&&window.matchMedia(e).matches}(e,n)),c=t[0],r=t[1];return(0,o.useEffect)((function(){var n=!0,t=window.matchMedia(e),o=function(){n&&r(!!t.matches)};return t.addListener(o),r(t.matches),function(){n=!1,t.removeListener(o)}}),[e]),c}}}]);