PageSourceSearch

https://dein.ai-fitness.de/4e72c47dab7c2a83ed28.chunk.js

js ai-fitness.de collected 2026-10-03 21:40:23 UTC 8,003 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmysports_web=self.webpackChunkmysports_web||[]).push([[1210],{51210:function(e,r,t){t.r(r),t.d(r,{default:function(){return v}});var n=t(85608),o=t(31085),s=t(3838),a=t(14041),i=t(77890),u=t(36889),d=t(99643),c=t(12582),l=t(69565),p=t(74184),w=t(35286),f=t(73349),b=t(83794),h=t(26802),g=t(10252),m=t(10253),y=function(){function e(){var e=this;Object.defineProperty(this,"submitState",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"credentialsDisposer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"newPasswordValidator",{enumerable:!0,configurable:!0,writable:!0,value:function(r){return(!r||e.form.$.newPasswordRepeat.value!==r)&&e.i18n.formatMessage({id:"errormessage.password.repetition.incorrect",defaultMessage:"Password and password repetition do not match"})}}),Object.defineProperty(this,"newPasswordRepeatValidator",{enumerable:!0,configurable:!0,writable:!0,value:function(r){return(!r||e.form.$.newPassword.value!==r)&&e.i18n.formatMessage({id:"errormessage.password.repetition.incorrect",defaultMessage:"Password and password repetition do not match"})}}),Object.defineProperty(this,"form",{enumerable:!0,configurable:!0,writable:!0,value:new f.FormState({authError:new f.FieldState(void 0).validators(m.hJ),newPassword:new f.FieldState("").validators((0,m.WX)("noexcuse.registration.password.error"),this.newPasswordValidator),newPasswordRepeat:new f.FieldState("").validators(this.newPasswordRepeatValidator)}).validators((function(r){return r.newPassword.$!==r.newPasswordRepeat.$&&e.i18n.formatMessage({id:"errormessage.password.repetition.incorrect",defaultMessage:"Password and password repetition do not match"})}))})}return Object.defineProperty(e.prototype,"i18n",{get:function(){return(0,w.g)(p.F)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"api",{get:function(){return(0,w.g)(h.j)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"authError",{get:function(){return(0,m.yg)(this.form.$.authError)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"newPassword",{get:function(){return(0,m.yg)(this.form.$.newPassword)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"newPasswordRepeat",{get:function(){return(0,m.yg)(this.form.$.newPasswordRepeat)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasError",{get:function(){return this.form.hasError},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showSuccess",{get:function(){return"success"===this.submitState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"init",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;(0,b.makeAutoObservable)(this),this.credentialsDisposer=(0,b.reaction)((function(){return{newPassword:e.newPassword.value,newPasswordRepeat:e.newPasswordRepeat.value}}),(function(){e.form.clearFormError(),e.authError.value=void 0}))}}),Object.defineProperty(e.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.credentialsDisposer()}}),Object.defineProperty(e.prototype,"submit",{enumerable:!1,configurable:!0,writable:!0,value:function(){return(0,n.__awaiter)(this,void 0,Promise,(function(){var e,r;return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return e=this.i18n.formatMessage,[4,this.form.validate()];case 1:if(t.sent().hasError)return[2,!1];t.label=2;case 2:return t.trys.push([2,4,,5]),this.submitState="loading",[4,this.api.clientNox.PasswordResetControllerV2.updatePassword({code:this.code,password:this.newPassword.value})];case 3:if(t.sent().success)return this.form.reset(),this.submitState="success",[2,!0];throw new Error(e({id:"nox.error.internal.server.error",defaultMessage:"An unexpected error has occured."}));case 4:return r=t.sent(),this.authError.value=r,[3,5];case 5:return[2,!1]}}))}))}}),(0,n.__decorate)([i.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)([i.destroy,(0,n.__metadata)("design:type",Function),(0,n.__metadata)("design:paramtypes",[]),(0,n.__metadata)("design:returntype",void 0)],e.prototype,"dispose",null),(0,n.__decorate)([(0,i.component)({scope:g.Wu.verifyPassword()})],e)}(),P=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(r,e),Object.defineProperty(r.prototype,"store",{get:function(){return(0,w.g)(y)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"appStore",{get:function(){return(0,w.g)(d.t)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"i18n",{get:function(){return(0,w.g)(p.F)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.store.code=this.props.code}}),Object.defineProperty(r.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.appStore.mobile,r=this.i18n.formatMessage,t=this.store.showSuccess;return(0,o.jsxs)(u.HD,{extent:"400",children:[(0,o.jsx)(c.p,{title:r({id:"noxweb.password.new",defaultMessage:"New password"})}),(0,o.jsxs)(u.PE,{stack:!0,hAlign:"center",padding:["32",0,e?"32":"50"],between:e?"32":"50",children:[(0,o.jsx)(u.H2,{children:r({id:"noxweb.password.new",defaultMessage:"New password"})}),!t&&(0,o.jsx)(u.H4,{color:"textColor",textAlign:"center",children:r({id:"noxweb.password.new.text",defaultMessage:"Now enter the new password, that you want to use for your access."})})]}),t&&this.renderSuccess(),!t&&this.renderForm()]})}}),Object.defineProperty(r.prototype,"renderForm",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,r=this.store,t=r.newPassword,n=r.newPasswordRepeat,s=r.hasError,a=r.form,i=this.i18n.formatMessage;return(0,o.jsx)("form",{onSubmit:function(r){return e.onSubmit(r)},children:(0,o.jsxs)(u.PE,{stack:!0,between:"16",children:[s&&(0,o.jsx)(l.K,{errors:[a]}),(0,o.jsx)(u.qT,{type:"password",placeholder:i({id:"commons.password.new",defaultMessage:"New password"}),value:t.value,error:t.error,onChange:function(r){return e.onChangeNewPassword(r)}}),(0,o.jsx)(u.qT,{type:"password",placeholder:i({id:"commons.password.new.repeat",defaultMessage:"Repeat new password"}),value:n.value,error:n.error,onChange:function(r){return e.onChangeNewPasswordRepeat(r)}}),(0,o.jsx)(u.PE,{hAlign:"center",padding:["32",0,0],children:(0,o.jsx)(u.$$,{disabled:s,submit:!0,children:i({id:"commons.changepassword",defaultMessage:"Change password"})})})]})})}}),Object.defineProperty(r.prototype,"renderSuccess",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.i18n.formatMessage;return(0,o.jsxs)(u.PE,{between:"50",stack:!0,hAlign:"center",padding:[0,0,"32"],children:[(0,o.jsx)(u.H4,{textAlign:"center",weight:"semi",children:e({id:"noxweb.password.new.success",defaultMessage:"Your password has been successfully reset. You can now log in with your new password."})}),(0,o.jsx)(u.In,{type:"ok",color:"greenish",extent:60})]})}}),Object.defineProperty(r.prototype,"onSubmit",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return(0,n.__awaiter)(this,void 0,Promise,(function(){return(0,n.__generator)(this,(function(r){switch(r.label){case 0:return e.preventDefault(),[4,this.store.submit()];case 1:return r.sent()&&this.props.onSuccess(),[2]}}))}))}}),Object.defineProperty(r.prototype,"onChangeNewPassword",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.store.newPassword.value=e,this.store.newPasswordRepeat.validate()}}),Object.defineProperty(r.prototype,"onChangeNewPasswordRepeat",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.store.newPasswordRepeat.value=e,this.store.newPassword.validate()}}),(0,n.__decorate)([i.external,s.PA],r)}(a.Component),v=P}}]);

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.