1(this.webpackJsonpnuscenes=this.webpackJsonpnuscenes||[]).push([[12],{1461:function(e,n,t){"use strict";t.r(n);var a=t(25),r=t(26),c=t(32),s=t(31),o=t(0),i=t.n(o),u=t(69),p=t.n(u),l=t(60),m=(t(20),t(46),t(10),t(27),t(71)),b=(t(364),t(33)),f=(t(147),t(70),t(61)),d=t(605),j=t.n(d),h=t(1),w=function(e){Object(c.a)(t,e);var n=Object(s.a)(t);function t(){return Object(a.a)(this,t),n.apply(this,arguments)}return Object(r.a)(t,[{key:"componentDidMount",value:function(){this.props.gateKeeper()}},{key:"render",value:function(){var e=this.props.username;return Object(h.jsx)("div",{className:j.a.wrapper,children:Object(h.jsxs)("div",{className:"warning-message",children:[Object(h.jsxs)("p",{children:["We have sent the activation link to your email address: ",e,"."]}),Object(h.jsx)("p",{children:"Please also check your spam folder for the confirmation email!"}),Object(h.jsxs)("p",{children:["Once your account is activated, please"," ",Object(h.jsx)(l.Link,{to:"/login"+window.location.search,children:"log in"}),"."]})]})})}}]),t}(i.a.Component),O={gateKeeper:function(){return function(e,n){var t=n().signUp.user;(p.a.isEmpty(t)||t.userConfirmed)&&(e(Object(m.b)("We did not find an unconfirmed user")),b.a.replace("/"))}}},v=Object(f.b)((function(e){return{username:p.a.get(e,"signUp.user.user.username","")}}),O)(w);n.default=v},364:function(e,n,t){"use strict";t.d(n,"b",(function(){return b})),t.d(n,"a",(function(){return f}));var a=t(20),r=t.n(a),c=t(46),s=t(10),o=t(27),i=t(71),u=t(33),p=t(115),l=t(70),m=t(15),b=function(e){return function(){var n=Object(c.a)(r.a.mark((function n(t){var a,c,b;return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,t(Object(o.a)(p.a,s.a.createLoading())),n.next=4,Object(l.a)();case 4:return n.next=6,n.sent.signUp({username:e.username,password:e.password,attributes:{"custom:company":e.company,email:e.username,given_name:e.givenName,website:e.website||"",family_name:e.familyName,"custom:news_letter":e.sendNewsletter,"custom:country":e.country}});case 6:a=n.sent,t(Object(o.a)(p.a,s.a.createSuccess())),t(Object(o.a)(p.b,a)),u.a.push("/confirm-account"+window.location.search),n.next=20;break;case 12:n.prev=12,n.t0=n.catch(0),c="An unknown error has occurred",b="Unknown",(n.t0 instanceof Error||"object"===typeof n.t0)&&n.t0&&(c=n.t0.message,b=n.t0.code),"UsernameExistsException"===b&&(c+=m.g?" Please log in with your nuScenes account.":" Please log in with your nuReality account."),t(Object(o.a)(p.a,s.a.createFailed(c))),t(Object(i.b)(c));case 20:case"end":return n.stop()}}),n,null,[[0,12]])})));return function(e){return n.apply(this,arguments)}}()},f=function(){return function(e){e(Object(o.a)(p.a,new s.a)),e(Object(o.a)(p.b,{}))}}},605:function(e,n,t){e.exports={wrapper:"confirm-account_wrapper__3CwPe"}}}]); 2//# sourceMappingURL=ConfirmAccount.622a2b29.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.