1"use strict";(self.webpackChunkmysports_web=self.webpackChunkmysports_web||[]).push([[926],{29009:function(e,t,r){r.d(t,{a:function(){return c}});var n=r(85608),a=r(73349),i=r(83794),o=r(77890),s=r(44191),d=r(74184),l=r(35286),u=r(10253),c=function(){function e(){var e=this;Object.defineProperty(this,"form",{enumerable:!0,configurable:!0,writable:!0,value:new a.FormState({authError:new a.FieldState(void 0).validators(u.hJ),newEmail:new a.FieldState("").validators((0,u.mw)(),s.B9),newEmailRepeat:new a.FieldState("").validators((0,u.mw)(),s.B9),currentPassword:new a.FieldState("").validators((0,u.mw)())}).validators((function(t){return t.newEmail.$!==t.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,l.g)(d.F)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"init",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;(0,i.makeObservable)(this,{hasFormError:i.computed}),(0,i.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,u.yg)(this.form.$.authError)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"newEmail",{get:function(){return(0,u.yg)(this.form.$.newEmail)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"newEmailRepeat",{get:function(){return(0,u.yg)(this.form.$.newEmailRepeat)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPassword",{get:function(){return(0,u.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}()},78999:function(e,t,r){r.d(t,{n:function(){return l}});var n=r(31085),a=r(3838),i=r(36889),o=r(96185),s=r(65462),d=r(81467),l=(0,a.PA)((function(e){var t=e.message;return(0,n.jsxs)(d.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)(i.oz,{children:t})}),(0,n.jsx)(s.I,{type:"ok",color:"greenish",extent:60})]})}))},79021:function(e,t,r){r.d(t,{v:function(){return f}});var n,a=r(85608),i=r(31085),o=r(3838),s=(r(14041),r(23495)),d=r(36889),l=r(69565),u=r(74184),c=r(35286),m=(0,s.Ay)(d.PE).withConfig({displayName:"TextFieldContainer",componentId:"-1mpwpmg"}
1)(n||(n=(0,a.__makeTemplateObject)(["\n width: 100%;\n"],["\n width: 100%;\n"]))),f=(0,o.PA)((function(e){var t=(0,c.g)(u.F).formatMessage,r=e.buttonText,n=e.store,a=e.text,o=e.store,s=o.form,f=o.hasFormError,p=o.newEmail,b=o.newEmailRepeat,g=o.currentPassword,h=o.requestError;return(0,i.jsx)("form",{onSubmit:function(e){e.preventDefault(),n.submit()},children:(0,i.jsxs)(d.PE,{stack:!0,hAlign:"center",between:"50",children:[a&&(0,i.jsx)(d.QR,{textAlign:"center",children:a}),(0,i.jsxs)(m,{stack:!0,between:"16",children:[h&&(0,i.jsx)(l.K,{errors:[h.message]}),f&&(0,i.jsx)(l.K,{errors:[s]}),(0,i.jsx)(d.qT,{type:"email",placeholder:t({id:"noxweb.email.new",defaultMessage:"New email address"}),value:p.value,error:p.error,onChange:function(e){n.newEmail.value=e}}),(0,i.jsx)(d.qT,{type:"email",placeholder:t({id:"noxweb.email.new.repeat",defaultMessage:"Repeat new email address"}),value:b.value,error:b.error,onChange:function(e){n.newEmailRepeat.value=e}}),(0,i.jsx)(d.qT,{type:"password",placeholder:t({id:"commons.password.old",defaultMessage:"Current password"}),value:g.value,error:g.error,onChange:function(e){n.currentPassword.value=e}})]}),(0,i.jsx)(d.PE,{hAlign:"center",children:(0,i.jsx)(d.$$,{submit:!0,disabled:n.loading,loading:n.loading,children:r})})]})})}))},90926:function(e,t,r){r.r(t),r.d(t,{default:function(){return x}});var n=r(31085),a=r(3838),i=r(19555),o=r(98190),s=r(81467),d=r(99643),l=r(12582),u=r(74184),c=r(35286),m=r(79021),f=r(78999),p=r(85608),b=r(83794),g=r(77890),h=r(73890),w=r(26802),y=r(10252),v=function(e){function t(){var t=e.apply(this,(0,p.__spreadArray)([],(0,p.__read)(arguments),!1))||this;return Object.defineProperty(t,"addAdditionalEmailRequest",{enumerable:!0,configurable:!0,writable:!0,value:(0,h.wrapRequest)((function(e){return t.api.clientNox.UserEmailController.addAdditionalEmail(e)}))}),t}return(0,p.__extends)(t,e),Object.defineProperty(t.prototype,"api",{get:function(){return(0,c.g)(w.j)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loading",{get:function(){return this.addAdditionalEmailRequest.loading},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requestError",{get:function(){return this.addAdditionalEmailRequest.error},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"init",{enumerable:!1,configurable:!0,writable:!0,value:function(){(0,b.makeObservable)(this,{loading:b.computed,requestError:b.computed})}}),Object.defineProperty(t.prototype,"submit",{enumerable:!1,configurable:!0,writable:!0,value:function(){return(0,p.__awaiter)(this,void 0,Promise,(function(){var e;return(0,p.__generator)(this,(function(t){switch(t.label){case 0:return[4,this.form.validate()];case 1:return t.sent().hasError?[3,6]:[4,this.addAdditionalEmailRequest.request({email:this.newEmail.value,currentPassword:this.currentPassword.value})];case 2:if(!t.sent())return[2];t.label=3;case 3:return t.trys.push([3,5,,6]),[4,this.api.fetchUserInfo()];case 4:return t.sent(),[3,6];case 5:return e=t.sent(),this.authError.value=e,[3,6];case 6:return[2]}}
1))}))}}),(0,p.__decorate)([g.initialize,(0,p.__metadata)("design:type",Function),(0,p.__metadata)("design:paramtypes",[]),(0,p.__metadata)("design:returntype",void 0)],t.prototype,"init",null),(0,p.__decorate)([(0,g.component)({scope:y.Wu.addAdditionalEmail()})],t)}(r(29009).a),x=(0,a.PA)((function(){var e=(0,c.g)(u.F).formatMessage,t=(0,c.g)(d.t).mobile,r=(0,c.g)(v),a=r.addAdditionalEmailRequest,p=r.hasFormError;return(0,n.jsxs)(s.PE,{stretch:!0,stack:!0,children:[(0,n.jsx)(l.p,{title:e({id:"noxweb.add.email",defaultMessage:"Add email address"})}),(0,n.jsx)(s.PE,{stack:!0,hAlign:"center",padding:["32",0,t?"32":"50"],between:t?"32":"50",children:(0,n.jsx)(o.H2,{children:e({id:"noxweb.add.email",defaultMessage:"Add email address"})})}),(0,n.jsx)(i.HD,{extent:"400",children:a.$&&!p?(0,n.jsx)(f.n,{message:e({id:"noxweb.add.email.success",defaultMessage:"Your email address has been successfully added."})}):(0,n.jsx)(m.v,{buttonText:e({id:"commons.add",defaultMessage:"Add"}),text:e({id:"noxweb.add.additional.email.text",defaultMessage:"After adding a new email address, you have to verify it first. You will receive a message to the new address for this and must confirm it once."}),store:r})})]})}))}}]);
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.