1"use strict";(self.webpackChunkmysports_web=self.webpackChunkmysports_web||[]).push([[3866],{29009:function(e,r,t){t.d(r,{a:function(){return d}});var n=t(85608),i=t(73349),a=t(83794),o=t(77890),s=t(44191),l=t(74184),u=t(35286),c=t(10253),d=function(){function e(){var e=this;Object.defineProperty(this,"form",{enumerable:!0,configurable:!0,writable:!0,value:new i.FormState({authError:new i.FieldState(void 0).validators(c.hJ),newEmail:new i.FieldState("").validators((0,c.mw)(),s.B9),newEmailRepeat:new i.FieldState("").validators((0,c.mw)(),s.B9),currentPassword:new i.FieldState("").validators((0,c.mw)())}).validators((function(r){return r.newEmail.$!==r.newEmailRepeat.$&&e.i18n.formatMessage({id:"noxweb.email.new.repeat.error",defaultMessage:"The email addresses do not match."})}))})}return Object.defineProperty(e.prototype,"i18n",{get:function(){return(0,u.g)(l.F)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"init",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;(0,a.makeObservable)(this,{hasFormError:a.computed}),(0,a.reaction)((function(){return{a:e.newEmail.value,b:e.newEmailRepeat.value}}),(function(){return e.authError.value=void 0}))}}),Object.defineProperty(e.prototype,"authError",{get:function(){return(0,c.yg)(this.form.$.authError)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"newEmail",{get:function(){return(0,c.yg)(this.form.$.newEmail)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"newEmailRepeat",{get:function(){return(0,c.yg)(this.form.$.newEmailRepeat)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPassword",{get:function(){return(0,c.yg)(this.form.$.currentPassword)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasFormError",{get:function(){return this.form.hasError},enumerable:!1,configurable:!0}),(0,n.__decorate)([o.initialize,(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[]),(0,n.__metadata)("design:returntype",void 0)],e.prototype,"init",null),e}()},35807:function(e,r,t){t.d(r,{D:function(){return b}});var n,i,a=t(85608),o=t(31085),s=t(3838),l=(t(14041),t(23495)),u=t(36889),c=t(96185),d=t(81467),f=t(53056),m=t(47673),g=t(26802),p=t(74184),h=t(35286),b=function(e){var r=(0,h.g)(p.F).formatMessage,t=(0,h.g)(g.j).isWhitelabel,n=e.email,i=e.verified,a=e.onResend,s=e.loading;return(0,o.jsx)(f.s,{onClick:e.onClick?function(){e.onClick&&e.onClick(n,i)}:void 0,children:(0,o.jsxs)(d.PE,{stack:!0,children:[(0,o.jsx)(c.Q,{children:n}),(0,o.jsxs)(d.PE,{between:"12",children:[(0,o.jsx)(c.Q,{color:i?t?"textColor":"coolgrey":"errorColor",children:r({id:i?"email.verified":"email.not.verified"})}),a&&!i&&(0,o.jsx)(w,{onResend:a,loading:s})]})]})})},v=l.Ay.div.withConfig({displayName:"RepeatAnimation",componentId:"-1difueq"}
1)(i||(i=(0,a.__makeTemplateObject)(["\n animation: ",";\n"],["\n animation: ",";\n"])),(function(e){return e.loading&&(0,l.AH)(n||(n=(0,a.__makeTemplateObject)(["\n "," 500ms infinite linear\n "],["\n "," 500ms infinite linear\n "])),m.Z)})),w=(0,s.PA)((function(e){var r=e.onResend,t=e.loading,n=(0,h.g)(p.F).formatMessage;return(0,o.jsx)(u.m_,{text:n({id:"nox.mail.resent",defaultMessage:"Send mail again"}),children:(0,o.jsx)(v,{loading:t,children:(0,o.jsx)(u.N_,{onClick:function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){return(0,a.__generator)(this,(function(t){return r&&(e.stopPropagation(),r()),[2]}))}))},color:"highlightColor",a11yMessage:"resendMail",children:(0,o.jsx)(u.In,{type:"repeat",extent:14})})})})}))},40268:function(e,r,t){t.d(r,{S:function(){return f}});var n=t(85608),i=t(83794),a=t(77890),o=t(73890),s=t(26802),l=t(74184),u=t(10252),c=t(35286),d=t(10253),f=function(){function e(){var e=this;Object.defineProperty(this,"authError",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"verifyEmailRequest",{enumerable:!0,configurable:!0,writable:!0,value:(0,o.wrapRequest)((function(r){var t=e.i18n.formatMessage,n=r.code,i=r.email;if(!n||!i)throw new Error(t({id:"nox.error.internal.server.error",defaultMessage:"An unexpected error has occured."}));return e.api.clientNox.UserEmailController.verifyEmail_2({code:n,email:i})}))}),Object.defineProperty(this,"resendRequest",{enumerable:!0,configurable:!0,writable:!0,value:(0,o.wrapRequest)((function(){return e.api.clientNox.UserController.resendRegistrationMail()}))})}return Object.defineProperty(e.prototype,"api",{get:function(){return(0,c.g)(s.j)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"i18n",{get:function(){return(0,c.g)(l.F)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"init",{enumerable:!1,configurable:!0,writable:!0,value:function(){(0,i.makeAutoObservable)(this)}}),Object.defineProperty(e.prototype,"verify",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r){return(0,n.__awaiter)(this,void 0,Promise,(function(){var t;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return[4,this.verifyEmailRequest.request({code:e,email:r})];case 1:if(!n.sent())return[2];n.label=2;case 2:return n.trys.push([2,4,,5]),[4,this.api.fetchUserInfo()];case 3:return n.sent(),[3,5];case 4:return t=n.sent(),this.authError=(0,d.E2)(t),[3,5];case 5:return[2]}}
1))}))}}),Object.defineProperty(e.prototype,"resend",{enumerable:!1,configurable:!0,writable:!0,value:function(){return(0,n.__awaiter)(this,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.resendRequest.request()];case 1:return e.sent(),[2]}}))}))}}),(0,n.__decorate)([a.initialize,(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[]),(0,n.__metadata)("design:returntype",void 0)],e.prototype,"init",null),(0,n.__decorate)([(0,a.component)({scope:[u.Wu.verifyAdditionalEmail(),u.Wu.emails(),u.Wu.changeEmail()].join(",")})],e)}()},53866:function(e,r,t){t.r(r),t.d(r,{default:function(){return M}});var n=t(85608),i=t(31085),a=t(3838),o=t(14041),s=t(58128),l=t(36889),u=t(19555),c=t(98190),d=t(81467),f=t(26802),m=t(99643),g=t(12582),p=t(69565),h=t(74184),b=t(47280),v=t(10252),w=t(35286),y=t(79021),j=t(35807),x=t(78999),_=t(40268),E=t(83794),P=t(77890),R=t(73890),O=function(e){function r(){var r=e.apply(this,(0,n.__spreadArray)([],(0,n.__read)(arguments),!1))||this;return Object.defineProperty(r,"changeMainEmailRequest",{enumerable:!0,configurable:!0,writable:!0,value:(0,R.wrapRequest)((function(e){return r.api.clientNox.UserController.changeMainEmail(e)}))}),r}return(0,n.__extends)(r,e),Object.defineProperty(r.prototype,"api",{get:function(){return(0,w.g)(f.j)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"loading",{get:function(){return this.changeMainEmailRequest.loading},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"requestError",{get:function(){return this.changeMainEmailRequest.error},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"init",{enumerable:!1,configurable:!0,writable:!0,value:function(){(0,E.makeObservable)(this,{loading:E.computed,requestError:E.computed})}}),Object.defineProperty(r.prototype,"submit",{enumerable:!1,configurable:!0,writable:!0,value:function(){return(0,n.__awaiter)(this,void 0,Promise,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.form.validate()];case 1:return e.sent().hasError?[3,3]:[4,this.changeMainEmailRequest.request({email:this.newEmail.value,currentPassword:this.currentPassword.value})];case 2:e.sent(),e.label=3;case 3:return[2]}}
1))}))}}),(0,n.__decorate)([P.initialize,(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[]),(0,n.__metadata)("design:returntype",void 0)],r.prototype,"init",null),(0,n.__decorate)([(0,P.component)({scope:v.Wu.changeEmail()})],r)}(t(29009).a),M=(0,a.PA)((function(){var e=(0,w.g)(h.F).formatMessage,r=(0,w.g)(m.t).mobile,t=(0,w.g)(b.aF),a=(0,w.g)(f.j),E=(0,w.g)(f.j).userInfo,P=(0,w.g)(O),R=P.changeMainEmailRequest,M=P.hasFormError,q=(0,w.g)(_.S);return o.useEffect((function(){R.$&&!M&&(a.logout(),t.confirm((0,i.jsx)(x.n,{message:e({id:"noxweb.change.email.success",defaultMessage:"Your email address has been successfully changed.<br/>You still have to verify it. You will receive a message to the new address and have to confirm it once."})}),{cancelText:void 0,confirmAction:function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return(0,s.navigate)(v.yJ.login()),[2]}))}))}}))}),[R.$,M]),(0,i.jsxs)(d.PE,{stretch:!0,stack:!0,children:[(0,i.jsx)(g.p,{title:e({id:"noxweb.change.email",defaultMessage:"Change email address"})}),(0,i.jsx)(d.PE,{hAlign:"center",padding:["32",0,r?"32":"50"],children:(0,i.jsx)(c.H2,{children:e({id:"noxweb.change.email",defaultMessage:"Change email address"})})}),(0,i.jsxs)(d.PE,{stack:!0,between:r?"32":"50",children:[(0,i.jsx)(u.HD,{extent:"800",children:(0,i.jsxs)(d.PE,{between:"32",stack:!0,children:[(0,i.jsx)(l.L7,{type:"notice",children:e({id:"noxweb.change.email.notice.logout",defaultMessage:"Please note that for security reasons you will be automatically logged out when you change your primary email address."})}),(0,i.jsx)("div",{children:E&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j.D,{email:E.email,verified:E.verified,onResend:function(){return q.resend()},loading:q.resendRequest.loading}),q.resendRequest.match({error:function(e){return(0,i.jsx)(p.K,{errors:[e],type:"error"})}})]})})]})}),(0,i.jsx)(u.HD,{extent:"400",children:(0,i.jsx)(y.v,{buttonText:e({id:"commons.save",defaultMessage:"Save"}),store:P})})]})]})}))},78999:function(e,r,t){t.d(r,{n:function(){return u}});var n=t(31085),i=t(3838),a=t(36889),o=t(96185),s=t(65462),l=t(81467),u=(0,i.PA)((function(e){var r=e.message;return(0,n.jsxs)(l.PE,{between:"50",stack:!0,hAlign:"center",padding:[0,0,"32"],stretch:!0,children:[(0,n.jsx)(o.Q,{extent:"XL",color:"textColor",textAlign:"center",weight:"semi",children:(0,n.jsx)(a.oz,{children:r})}),(0,n.jsx)(s.I,{type:"ok",color:"greenish",extent:60})]})}))},79021:function(e,r,t){t.d(r,{v:function(){return m}});var n,i=t(85608),a=t(31085),o=t(3838),s=(t(14041),t(23495)),l=t(36889),u=t(69565),c=t(74184),d=t(35286),f=(0,s.Ay)(l.PE).withConfig({displayName:"TextFieldContainer",componentId:"-1mpwpmg"}
1)(n||(n=(0,i.__makeTemplateObject)(["\n width: 100%;\n"],["\n width: 100%;\n"]))),m=(0,o.PA)((function(e){var r=(0,d.g)(c.F).formatMessage,t=e.buttonText,n=e.store,i=e.text,o=e.store,s=o.form,m=o.hasFormError,g=o.newEmail,p=o.newEmailRepeat,h=o.currentPassword,b=o.requestError;return(0,a.jsx)("form",{onSubmit:function(e){e.preventDefault(),n.submit()},children:(0,a.jsxs)(l.PE,{stack:!0,hAlign:"center",between:"50",children:[i&&(0,a.jsx)(l.QR,{textAlign:"center",children:i}),(0,a.jsxs)(f,{stack:!0,between:"16",children:[b&&(0,a.jsx)(u.K,{errors:[b.message]}),m&&(0,a.jsx)(u.K,{errors:[s]}),(0,a.jsx)(l.qT,{type:"email",placeholder:r({id:"noxweb.email.new",defaultMessage:"New email address"}),value:g.value,error:g.error,onChange:function(e){n.newEmail.value=e}}),(0,a.jsx)(l.qT,{type:"email",placeholder:r({id:"noxweb.email.new.repeat",defaultMessage:"Repeat new email address"}),value:p.value,error:p.error,onChange:function(e){n.newEmailRepeat.value=e}}),(0,a.jsx)(l.qT,{type:"password",placeholder:r({id:"commons.password.old",defaultMessage:"Current password"}),value:h.value,error:h.error,onChange:function(e){n.currentPassword.value=e}})]}),(0,a.jsx)(l.PE,{hAlign:"center",children:(0,a.jsx)(l.$$,{submit:!0,disabled:n.loading,loading:n.loading,children:t})})]})})}))}}]);
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.